Creates a python disk LRU / cache - great for apps that want to save data
Project description
disklru
Creates a disk based lru that you can use in your apps.
Useful for caches.
Zero dependency package.
Usage
LRU_CACHE_FILE = "cache.db"
MAX_FILES = 4
cache = DiskLRUCache(LRU_CACHE_FILE, MAX_FILES)
cache.put("key", "value")
assert cache.get("key1") == "val"
cache.clear()
Windows
This environment requires you to use git-bash
.
Linting
Run ./lint.sh
to find linting errors using pylint
, flake8
and mypy
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
disklru-1.0.5.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for disklru-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430155a85f48b3dc6f3ea4bd8c31fde69ba035a44a77407362558185966a3308 |
|
MD5 | d3c40d8885dac3018563a47312a395f1 |
|
BLAKE2b-256 | df6ef158d4484a7fb1d70d35e65c2dbbbccf4b57f07faf2a0470bd72d635991a |