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.1.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for disklru-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db9b1ae7c1e9633c3758c7e43ba85c3bc0b988ac208cd97266f5304207bdf752 |
|
MD5 | bf5b875d3256c259c611fdd1477c3e87 |
|
BLAKE2b-256 | 2e71406314d7367b748c9b004bebe9079363cd02c049d5837ed4ac4947b9570e |