cache extension for django
Project description
=====
Django cache extension
=====
Quick start
-----------
1. Install ``cache extension`` by pip::
pip install django-cache-extension
2. For redis backend use cache like this::
config your cache file backend to cache_extension:
CACHES={
"default": {
'BACKEND': 'cache_extension.backends.redis.ExtensionRedisBackend',
'LOCATION': 'redis://redis:6379/0',
'TIMEOUT': '172800',
"KEY_PREFIX": "cache_extension",
'OPTIONS': {
"DB": 0,
"CLIENT_CLASS": "django_redis.client.DefaultClient",
'PARSER_CLASS': 'redis.connection.HiredisParser',
'PICKLE_VERSION': 2,
}
}
},
Django cache extension
=====
Quick start
-----------
1. Install ``cache extension`` by pip::
pip install django-cache-extension
2. For redis backend use cache like this::
config your cache file backend to cache_extension:
CACHES={
"default": {
'BACKEND': 'cache_extension.backends.redis.ExtensionRedisBackend',
'LOCATION': 'redis://redis:6379/0',
'TIMEOUT': '172800',
"KEY_PREFIX": "cache_extension",
'OPTIONS': {
"DB": 0,
"CLIENT_CLASS": "django_redis.client.DefaultClient",
'PARSER_CLASS': 'redis.connection.HiredisParser',
'PICKLE_VERSION': 2,
}
}
},
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
Close
Hashes for django-cache-extension-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 732d4ebf7301a0fa3d64cf8e03a1e045eafa1a10e491d336fc84e7c1335ed857 |
|
MD5 | 5636162d5aca6d461a2cebc1d9894bdf |
|
BLAKE2b-256 | ca0394f653cb6f6eed552cfdb11eb0105d8371ff1eb88036a728417d61b3fa93 |