Skip to main content

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.

Source Distribution

cachelite-0.9.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

cachelite-0.9.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file cachelite-0.9.1.tar.gz.

File metadata

  • Download URL: cachelite-0.9.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.4

File hashes

Hashes for cachelite-0.9.1.tar.gz
Algorithm Hash digest
SHA256 deb0b04ebed57e15d30dfaac507740f96d8d82801abf19654736724e3884ef67
MD5 571e1213957c250d885fb4e0b59ebeed
BLAKE2b-256 d743b909957a42caa6cea7d4aec2b4034dd848f1f3c7e36c5919c2f48f5e86de

See more details on using hashes here.

File details

Details for the file cachelite-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: cachelite-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.4

File hashes

Hashes for cachelite-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a00448803fc1cd5ddeb4100954fca86e41a4a77e2798db6a1e9ad2d4ff58b7f2
MD5 6091cf8cae42daf992d5ee6b26d31836
BLAKE2b-256 e951b8c7ee11b17eeb71abd1d330dda6ddf613cd10c85ec736a519961246f483

See more details on using hashes here.

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