Django cache backend for Amazon ElastiCache (memcached)
Project description
- Info:
Simple Django cache backend for Amazon ElastiCache (memcached based).
- Copyright:
- © UNCOVER TRUTH Inc.
- Date:
- 2017-04-11
- Version:
- 0.0.3
Purpose
Simple Django cache backend for Amazon ElastiCache (memcached based). It uses pymemcache and sets up a connection to each node in the cluster using auto discovery. Originally forked from django-elasticache.
Requirements
pymemcache
Django>=1.8
Installation
Get it from pypi:
pip install django-elastipymemcache
Usage
Your cache backend should look something like this:
CACHES = { 'default': { 'BACKEND': 'django_elastipymemcache.memcached.ElastiPyMemCache', 'LOCATION': '[configuration endpoint]:11211', 'OPTIONS': { 'cluster_timeout': 1, # its used when get cluster info 'ignore_exc': True, # pymemcache Client params } } }
Testing
Run the tests like this:
nosetests
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for django-elastipymemcache-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 326f0c515c6497c58be44848f4eac440b17e246fc1a98f28d7339238b07da9b0 |
|
MD5 | 86e32d9b2177edfa3c90c2124e106b5d |
|
BLAKE2b-256 | 7eead5432cfee441d89080105fa6ad0fc364b1710078dce28d8b3a8369c9b900 |
Close
Hashes for django_elastipymemcache-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e6e333ecd8d6d339dacceb3764a79cf7308a8209f437e0b2bcbd5c2865d8821 |
|
MD5 | 20bf78589168683a407941f6fa800783 |
|
BLAKE2b-256 | 05d8abe8a84e47c74b0c6cde46230b6e854c97dbfb29bc8a6df6002b3d574de5 |