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": {
'NAME': '17bdc',
'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": {
'NAME': '17bdc',
'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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa57cfddf2436efe2b76b8f61a6bd281fe589028b10a6ffad99dd1c5b19c59b9 |
|
MD5 | a258ed0b62dca3a330ae860a1e64e9ed |
|
BLAKE2b-256 | ff57c57a536050b193e5a2d446a3252c062cc8b1df867c96d8399c861052d81d |