Django cache backend for Amazon ElastiCache (memcached)
Project description
- Info:
Simple Django cache backend for Amazon ElastiCache (memcached based).
- Copyright:
- © UNCOVER TRUTH Inc.
- Date:
- 2017-04-11
- Version:
- 1.0.0
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>=1.8
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
File details
Details for the file django-elastipymemcache-1.0.0.tar.gz
.
File metadata
- Download URL: django-elastipymemcache-1.0.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 375ccaf52bda4140546b76608fbc251133b81294e541ee39f13794f46ad692dc |
|
MD5 | db457ce6deaf819c56881127485ce876 |
|
BLAKE2b-256 | 72ccd12750a4ea66e40aab390b56236e752347ed0b2a4360ab8e7f0332899c75 |
File details
Details for the file django_elastipymemcache-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_elastipymemcache-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 833f69681810b36ab45016e7aad1006c4153f769e1c15bbf6fbf70fe315d860e |
|
MD5 | d1830f8ec747cd9d5aff31b8b708e1ea |
|
BLAKE2b-256 | 112e8bc4ff52ea983e5fd86fdf77160f1cfe1fb9ba40d76bffde980d1bead6dc |