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': { '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-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f9b9e02e8c7c5f58b2ac51a2af9b6d3f2297adeeaeb3646c7634b1b78bb7b81 |
|
MD5 | 2153e19e9f89afd773cd21b47d225195 |
|
BLAKE2b-256 | 211bfd20ce09aee4f0bb417fa71a41180146d2827df10d177eca62d8042e3483 |
Close
Hashes for django_elastipymemcache-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2476bd6c0249ff97ba4ce3979a58b76105c1ef9ab73ea72e89cae1b741f6edb6 |
|
MD5 | 4ef31c758a31dd6b43129a0e973c9ac4 |
|
BLAKE2b-256 | 3f8641916ff425f2a48ceff7ce48f32a977ce1aa6fc4d582c785cf4df79853c6 |