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
django-pymemcache>=1.0
Installation
Get it from pypi:
pip install django-elastipymemcache
Usage
Your cache backend should look something like this:
CACHES = { 'default': { 'BACKEND': 'django_elastipymemcache.backend.ElastiPymemcache', 'LOCATION': '[configuration endpoint]:11211', 'OPTIONS': { '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-2.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b72674351d8d83d0e3403d36726babff8989366c50802ac60b67c46ec80c5baa |
|
MD5 | 8b564799d0a5c81dda419442f3eeb1d1 |
|
BLAKE2b-256 | 6ca192e5379b6f07bccf4defb86baf55bbc7798da172a5a100b0abc1facfa6e6 |
Close
Hashes for django_elastipymemcache-2.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58fb6fd8383b4c04c99893d90a09ad15da0b617d541daaea4d1117d282ef09e6 |
|
MD5 | b314d859e8c0e9a34d83fdc0d0b377ae |
|
BLAKE2b-256 | 0dccca3a63f02e1fdaf27407e8402a097eed44f3bdbe7980bff210ce17ec50cf |