Django Cache.
Project description
=====
Django request cache
=====
Middlewares:
-----------
- CacheMiddleware
Use:
----
.. code-block:: python
# settings.py
INSTALLED_APPS = [
# .
# .
# .
"cache.apps.CacheConfig"
]
MIDDLEWARE = [
'cache.middleware.CacheMiddleware',
# .
# .
# .
]
REDIS_HOST = 'localhost'
REDIS_PORT = 6379
REDIS_DB = 0
REDIS_EXPIRE = 600
Django request cache
=====
Middlewares:
-----------
- CacheMiddleware
Use:
----
.. code-block:: python
# settings.py
INSTALLED_APPS = [
# .
# .
# .
"cache.apps.CacheConfig"
]
MIDDLEWARE = [
'cache.middleware.CacheMiddleware',
# .
# .
# .
]
REDIS_HOST = 'localhost'
REDIS_PORT = 6379
REDIS_DB = 0
REDIS_EXPIRE = 600
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
Built Distribution
Close
Hashes for django-requests-cache-0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c862eba5b51dec9d0bcd4b08d17b8a7080f50184ccd49a772088ee277054d287 |
|
MD5 | 6cae47fc3683f4795b12b53b39be3dc0 |
|
BLAKE2b-256 | 92012ed43831356aae5f77deacd5912ecca21c369b17c027238e561cb8b1662d |
Close
Hashes for django_requests_cache-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b301b83edf3dbdc9c5b9f79e90c42cea25044a1ceee005c4489ca86b513afb04 |
|
MD5 | 1bbd1b04af0b0a05d5b0098db89b36a0 |
|
BLAKE2b-256 | d76e450b6ba505395601675a4e114cedcb7929fbefc66b095673d246624ea24e |