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
Built Distribution
Close
Hashes for django-cache-fallback-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bf700b9b42b07680c73531e385993fe0de03faf9ab22486d31dcee7217d1d0c |
|
MD5 | 7e69d72d52c391a41bb45c572e7c9ac8 |
|
BLAKE2b-256 | c5d098bd468ab92a7b9462e40ba4eb7c44c20f056514ac14fd5528b8428cc736 |
Close
Hashes for django_cache_fallback-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fb638770f1ff9fb856d099c3cdf99e242fcd5f3f3bf7ce46df4b16bfd2eb905 |
|
MD5 | 5d361e4880f67af3ffa41b7c562cc670 |
|
BLAKE2b-256 | 442a9e2b83bda0d91c195d054297d0144564d7b2804319410cafb9bc1d081bcd |