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.1
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59db3778463307d5d9215a08b355890af09009481cc2e82578546f073a8c15a8 |
|
MD5 | 0d884a61d958918baed1e6e36474cde1 |
|
BLAKE2b-256 | b4e01cfd1505abe117af579996caf620f63c749af9dda7a3236a9efafd05c085 |
Close
Hashes for django_elastipymemcache-1.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30cfd37d7a42fb2347c597045a3df7aef53f6ad63b3c9d9707ec1fe6ecb004bb |
|
MD5 | c8b04ca993b14a6a269527aa3e002f77 |
|
BLAKE2b-256 | 78d29acc29f54b4ed34b74f758473f6e95efa9f764e6ee17b0cf1ccbc64090f4 |