Django Cache Fallback
Project description
- Info:
This is the README file for Django Cache Fallback.
PURPOSE
Allows you to set fallback 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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 753ce53a148defc4f8e7a7b5f2aba951469bf458efc9a5a125855d1841692dcc |
|
MD5 | 269787b7f5e554b003fcf65ae114d934 |
|
BLAKE2b-256 | a754035513d2d79aa000601c8b405aabb06c2027dab141483c16bfd917472bc6 |
Close
Hashes for django_cache_fallback-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a995664091d3e4216f0ff669694d23a472b5f1d947cc29cbc3491fd140d0d570 |
|
MD5 | 85bf7ccf11fff5817650e314e2762703 |
|
BLAKE2b-256 | 1e40dc5e9a34c95ef6ad060c19d5c3980b5c0b2c996d5c0e51211d10c7ef27fd |