a simple multi-process scalable cache implementation
Project description
Documentation
The full documentation is at https://cachelite.readthedocs.org/
Quickstart
Install cachelite:
pip install cachelite
Then you can use it.
import cachelite from CacheLite
cache = CacheLite("/tmp/YOUR_TO_CACHE_DIR")
#put a key-value
cache["YOUR_KEY"] = "YOUR_VALUE"
#get a value
value = cache["YOUR_KEY"]
#delete a value
del cache["YOUR_KEY"]
#get size of data entries
len(cache)
#iteration
for a in cache:
print(a)
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
cachelite-0.9.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for cachelite-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a00448803fc1cd5ddeb4100954fca86e41a4a77e2798db6a1e9ad2d4ff58b7f2 |
|
MD5 | 6091cf8cae42daf992d5ee6b26d31836 |
|
BLAKE2b-256 | e951b8c7ee11b17eeb71abd1d330dda6ddf613cd10c85ec736a519961246f483 |