Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cachelite-0.9.1-py3-none-any.whl (6.1 kB) Copy SHA256 hash SHA256 Wheel py3 Sep 22, 2018
cachelite-0.9.1.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None Sep 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page