Django Cache Fallback
Project description
- Info:
This is the README file for Django Cache Fallback.
PURPOSE
Allows you to set fallback cache backend (multiple cache backend). The data is not shared between cache backends. Example: Memcached is not available, backend switch to fallback. Site may slow down (cache have to be set) but will not rise an error (watch your logs)
INSTALLATION
pip install django-cache-fallback
INSTALLED_APPS = (
...
'cache_fallback',
)
USAGE
Usage example PyLibMCCache + LocMemCache
CACHES = {
'default': {
'BACKEND': 'cache_fallback.FallbackCache',
},
'main_cache': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '/tmp/memcached.sock',
'TIMEOUT': 500,
},
'fallback_cache': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique'
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_cache_fallback-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e942bfe6735332d616b58c6f98654d64e06cbaeaf552a64c98760ddd381f73e |
|
MD5 | fb7f37004100907682c992658ece70c4 |
|
BLAKE2b-256 | 96d3db0455a72d764c2c9d6ba16739bf2d4f933de00c14105ac5d8ced69bfb39 |