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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a265846cc745def796d3ae32f73c97570c009a437e1cdb0dd3c63b94e0bf6147 |
|
MD5 | 699148bdc88a59861bbd63b9d502a8ba |
|
BLAKE2b-256 | 9ee70c4ff873afae5e35f1be9b5e04452a7294bd1907adcaaffccf4f0b5cb743 |
Close
Hashes for django_elastipymemcache-2.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b04e8962160bcdea90fffc915f362eb687b726e428ee777748ccd004e78b5c |
|
MD5 | 0b0f7858d7e07afe2a0f9190212161a5 |
|
BLAKE2b-256 | 966011fa2168a7afafa2b7e5bd00b022d8edd91278a01dd414a5a8e3a8d5cd39 |