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 Distribution
Close
Hashes for django-cache-fallback-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcd52fd219b4a924d681c160f3f0dca5ca967aa66d148174316aa9188ea4d633 |
|
MD5 | cb0dc242daecbb02ac30ba03e42f3ff1 |
|
BLAKE2b-256 | e1a31de280a0b6aa00824b695636276b5d310423b18ac84d52bba46f3ecd0316 |