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.6
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 '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-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0229948f97e53a93f1e380f24c8448ec280eb0535e43801fd584bf3b64a6a088 |
|
MD5 | 9f131653d4b9bcfaab1cebcdd66661e2 |
|
BLAKE2b-256 | b34d70f4c07ff92ba4e350643853887b245df9ed01ab08e09ef39c56d7d02cde |
Close
Hashes for django_elastipymemcache-0.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a705786c898db14741527661615d06bd73dcdcaa4d32b949acbe6948ca464838 |
|
MD5 | fa1a782fe99e6a4f6f27c131fb823c97 |
|
BLAKE2b-256 | f8c17b25cca5c110a5e1f700d9d37a6f9badd7f837bac94f2c6d3bc0ce393308 |