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.1.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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7964770149ea01cefabe576bb0f9c82759fa5d8ddffd67fb77f49f22cd125bcf |
|
MD5 | cabbf51c0ff02d28b52fbad3c13a8720 |
|
BLAKE2b-256 | b9780b457d1382acd0bb219dc5f47676cd34cb051838596dd921027b6407e4fe |
Close
Hashes for django_elastipymemcache-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e31abc63b2bfb41549a214dc3b03a9bc62001ff9e7aa20d11660f6ad4e07ec4 |
|
MD5 | d5583fcedf845a52283ca71230572996 |
|
BLAKE2b-256 | 473e9f6c8f9e8bf092a22a6f7f70491b69fc844dbdfde1012e496a669e6a4bcf |