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.5
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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f6cf8089a96b2c1175d104038efd18e34b5757dc7977505458f32eadd8bfd3 |
|
MD5 | acce769eba0f640466fc7404f80a10d9 |
|
BLAKE2b-256 | 162fbe85cccbabaa146a54f1c241f6b088d6f909de551f922a47ca84ca67d807 |
Close
Hashes for django_elastipymemcache-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8d092658b374edbf2dec5e63fcf6ff9418266a83fc157d0dc877633a18438d1 |
|
MD5 | c7e311f55861e682f4028b7c4ac2588a |
|
BLAKE2b-256 | fecb5d7cea2f6ce59c05fb0a362c882ba579fb9ea0b9ea618d2feabc3bbb89bc |