theine icon indicating copy to clipboard operation
theine copied to clipboard

Feature Request: TTL only Cache

Open elbaro opened this issue 10 months ago • 6 comments

  1. Unlimited sized Cache
@Memoize(Cache("unlimited"), timedelta(seconds=10 * 60))
def get():
    ...
  1. Zero sized Cache (ignore returned value)
@Memoize(Cache("empty"), timedelta(seconds=10 * 60))
def update_global_dict():
    value = query(..)
    global_dict[value.field2] = value.field1
    global_dict[value.field3] = value.field1

elbaro avatar Aug 13 '23 07:08 elbaro