Skip to main content

Unify API across various cache backends

Project description

Forked from Django’s cache framework, Dache is a Python library that provides a unified API across various cache backends.

WARNING: This package is still in development. Do NOT use it in production!


pip install dache


>>> import dache
>>> cache = dache.Cache('locmem://')
>>> cache.set('key', {'value': 1234})
>>> cache.get('key')
{'value': 1234}

Built-in backends:

Backend Required Python Package(s) URL
File   file:///DIR_PATH
LevelDB leveldb leveldb:///DIR_PATH
Local memory   locmem://
Memcached python-memcached or python3-memcached pylibmc memcached://HOST:PORT pylibmc://HOST:PORT
Redis redis and hiredis redis:///HOST:PORT/DB

To register a custom backend, you can use register_backend():

>>> import dache
>>> dache.register_backend('awesome', 'my.backend.MyAwesomeCache')

Project details

Download files

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

Files for dache, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size dache-0.0.4.tar.gz (15.3 kB) File type Source Python version None Upload date Hashes View
Filename, size dache-0.0.4-py2-none-any.whl (20.2 kB) File type Wheel Python version 2.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page