/fridge

Python dictionaries with optional self-destruct timers.

Primary LanguageJupyter NotebookBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

fridge [Python 3]

fridge objects are key-value stores which automatically delete data which is past its expiration date.

MiniFridge

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.

CacheOutput

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.