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 details)
File details
Details for the file cs.cache-20181228.tar.gz.
File metadata
- Download URL: cs.cache-20181228.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c993ccb73db7f6a674e9b002ffaa8e26b56098d0fbdc03b4dcb7fcae9380f6b0
|
|
| MD5 |
c93a3e8311522ccb7ca34c86ea1ae329
|
|
| BLAKE2b-256 |
948b61841cbc6cab870a7a73a8cd9cfc4153d82c5850740409f322c963555f7d
|