Skip to main content

Unify API across various cache backends

Project description

https://badge.fury.io/py/dache.svg https://travis-ci.org/eliangcs/dache.svg?branch=master https://coveralls.io/repos/eliangcs/dache/badge.png?branch=master

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

dache-0.0.4.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dache-0.0.4-py2-none-any.whl (20.2 kB view details)

Uploaded Python 2

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

Hashes for dache-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e58c2cd88faa71874e590ffd6e536caa15ef719f3dc78ac736119ad180ab896e
MD5 7a762e0beb2d53e3d12cd6ce35ed4d91
BLAKE2b-256 559f1ffb91ff0d164a3326769343cfecc64f42f04656e0c89378fc9d77749591

See more details on using hashes here.

File details

Details for the file dache-0.0.4-py2-none-any.whl.

File metadata

File hashes

Hashes for dache-0.0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 9db81ce21e7422478a79ade4881b94793647c1c1dd01d1b0f3eaa25706586ccc
MD5 535df74f1a235cafc983756a9ce0dd36
BLAKE2b-256 e860d2ed57f6ba02f8b271eb43deadc1c5abc8526e872c490a7c35b930479bb1

See more details on using hashes here.

Supported by

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