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
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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0a97ccc960288acbe7962fd100674f57d4f7979fed85549595fce0fe246a5f |
|
MD5 | a83533735e920d6ec9257e4d62d1d0ce |
|
BLAKE2b-256 | 7deac80a158b6c812996ca8036f31f7a5bc52a1dc8388784a0cf68c937c40157 |
Close
Hashes for django_elastipymemcache-1.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99e2a1ef8be3a89ce795e20176df3de34180ab112760148fd6cc48fea385cd29 |
|
MD5 | d39bb7e9523ddf478ca7ec22b1d65588 |
|
BLAKE2b-256 | 51f7d092cd4b997344ed2bfc6d524f086e1ac619c477d41b36de7b9266282037 |