Django cache backend for Amazon ElastiCache (memcached)
Project description
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>=2.2
django-pymemcache>=1.0
Installation
Get it from pypi:
pip install django-elastipymemcache
Usage
Your cache backend should look something like this:
CACHES = { 'default': { 'BACKEND': 'django_elastipymemcache.backend.ElastiPymemcache', 'LOCATION': '[configuration endpoint]:11211', 'OPTIONS': { '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-2.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c1d1dc65babcbcd1c21ace79a12279f9f9d34ada94f8a9ea54fcd64eba0488 |
|
MD5 | 8ca45f58347a301441e2196165c69b97 |
|
BLAKE2b-256 | 75f0012f67acf4e5a7ef0bdde888df6e063fc9ef908bd4a4c58891e91b70a07b |
Close
Hashes for django_elastipymemcache-2.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3697e5c6a7bb79c3fdd9efb4f079c997b2ca967114c3f50cd1cd2b54bbec4e50 |
|
MD5 | f479b03e738eb3df86cd7d912f10377d |
|
BLAKE2b-256 | a6820373d76db28ed18addfcf039390443503e2e0b16dff0faa53bba46f1195b |