Django cache backend stored in django request
Project description
Django cache backend stored in django request
Installation
$ pip install django-in-request-cache
Quick start
Add “django-in-request-cache” to your setting as cache like this:
from django.conf.global_settings import CACHES as DEFAULT_CACHES CACHES = dict( DEFAULT_CACHES, cache_in_request={ 'BACKEND': 'django_in_request_cache.cache.InRequestCache', # 'LOCATION': 'my_request_cache', # request property name to store data # 'OPTIONS': {}, }, )
Add django-globals middleware to your settings like this:
MIDDLEWARE_CLASSES = [ ..., 'django_globals.middleware.Global', ]
License
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-in-request-cache-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd491e5c82a45d2b737fe89031f06ba6af4411d2818adb277192d635d23c411 |
|
MD5 | c23821e385f2daba2434803a131b38c4 |
|
BLAKE2b-256 | 328e56e9e6629f643cb129514a9dd4fdb97ff2e05ccf1e88d3b41d12bda8975e |