Django cache backend for Amazon ElastiCache (memcached)
Project description
- Info:
Simple Django cache backend for Amazon ElastiCache (memcached based).
- Copyright:
- © UNCOVER TRUTH Inc.
- Date:
- 2018-06-19
- Version:
- 1.2.0
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.11
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 'ignore_cluster_errors': True, # ignore get cluster info error } } }
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-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d9cf2aafb5b58abe57a25647bd537cd15f32b8a3529498c2ef194d43445920 |
|
MD5 | ae6b1c72775f4e39d7636f5d2c90ea55 |
|
BLAKE2b-256 | 7a1a95fd6412e23774bbc5bc6f3a94f608c8402ecf05c3bbcc9fa31d7c4e9505 |
Close
Hashes for django_elastipymemcache-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a06c0672edb50322993056aa434b32ca202efeaae89e14833bc557941357568 |
|
MD5 | 0c43812d6c0d73f88a768c3ec76ac647 |
|
BLAKE2b-256 | 1d771dc578c3994080eda6e2f4db6706123eaa7f30bf7fd562762804bc64b12a |