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
File details
Details for the file django-elastipymemcache-2.0.4.tar.gz
.
File metadata
- Download URL: django-elastipymemcache-2.0.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a37826fa315661eea85c86c60ac3c0aa5269b6d127037011f36443f3e8b6f21 |
|
MD5 | 3d03a32ed88ee2a9c8445024e459b67d |
|
BLAKE2b-256 | 4480eed4dc0cb5a77631e9c5fb0a4e1ee2e391aacf2c77a1e3015d4c87856881 |
File details
Details for the file django_elastipymemcache-2.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: django_elastipymemcache-2.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae510ed2487d8e2e1ca2cdf00bee32c9cf7c6f73c43279394d8585d7d4974a8 |
|
MD5 | f029469d0f6815c72e3611d6e71fb19d |
|
BLAKE2b-256 | 39c4c5683fc96dbe7992e881adddfce9d02ae31d8bf92a0b2c68f9a5909b5329 |