Skip to main content

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


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)

Uploaded Source

Built Distribution

kraken_cache-0.0.3-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page