Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cs.cache, version 20181228
Filename, size File type Python version Upload date Hashes
Filename, size cs.cache-20181228.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page