Decorators

sovereign.decorators.memoize(timeout, jitter=0)

Decorator to cache a function by name/args

Parameters
  • timeout – How long to keep the result

  • jitter – Randomize the timeout by this many seconds