Kraken cache
Project description
Kraken-cache
Provides a caching mechanism for kraken records.
from kraken_cache.kraken_cache import Kraken_cache
How to use: Initialize cache at beginning. Load data from database with load method. Add data to be saved with set. Retrieve all of the data to be saved using export. Clear data to be saved (after a save to db) with clear_all.
Initialize k = Kraken_cache()
Store data (to be writtened to db) k.set(id, data)
Load data (from db) k.load(id, data)
Retrieve data k.get(id)
Retrieve data that needs ot be saved to db k.export()
Reset all data (after save to db) k.clear_all()
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
kraken-cache-0.0.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for kraken_cache-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbf5a40b0c900b4cde3c93db71a31a319d832d634e97b119e1547b08dc0bb7de |
|
MD5 | 14cd3b5c7935837cd39c643bee1da57a |
|
BLAKE2b-256 | daa382c5b75f2233d2f9d44bf654063eb5aaf4c252625a11ba88c3e943fe8376 |