fridge objects are key-value stores which automatically delete data which is past its expiration date.
dictionary with optional self-destruct timers
MiniFridge
is similar to ExpiringDict but does not use re-entrant locks.
See the minifridge demo notebook for examples.
class-based function decorator which caches outputs of function calls
CacheOutput
is similar to Scott Lobdell's Memoized but with a MiniFridge
instead of deque
for storage.
See the cache_output demo notebook for examples.