caching data structures and other lossy things with capped sizes
Project description
A few caching facilities.
Class LRU_Cache
A simple least recently used cache.
Unlike functools.lru_cache
this provides on_add
and on_remove
callbacks.
Function lru_cache(maxsize=None, cache=None, on_add=None, on_remove=None)
Enhanced workalike of @functools.lru_cache.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cs.cache-20181228.tar.gz
(2.9 kB
view hashes)