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!
Installation
pip install dache
Usage
>>> 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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dache-0.0.4.tar.gz.
File metadata
- Download URL: dache-0.0.4.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e58c2cd88faa71874e590ffd6e536caa15ef719f3dc78ac736119ad180ab896e
|
|
| MD5 |
7a762e0beb2d53e3d12cd6ce35ed4d91
|
|
| BLAKE2b-256 |
559f1ffb91ff0d164a3326769343cfecc64f42f04656e0c89378fc9d77749591
|
File details
Details for the file dache-0.0.4-py2-none-any.whl.
File metadata
- Download URL: dache-0.0.4-py2-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9db81ce21e7422478a79ade4881b94793647c1c1dd01d1b0f3eaa25706586ccc
|
|
| MD5 |
535df74f1a235cafc983756a9ce0dd36
|
|
| BLAKE2b-256 |
e860d2ed57f6ba02f8b271eb43deadc1c5abc8526e872c490a7c35b930479bb1
|