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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a3200814f70cbb8fe76ba1b8703785ac042cc5cf112d4e83326464e5de1b81 |
|
MD5 | 9a6f0fe7ff6e1726afa1587665363e4c |
|
BLAKE2b-256 | 8ebf63f75889081f483b8c2dd92b321ab48f2502a760767411bbdcec86fd1911 |
Close
Hashes for django_requests_cache-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea8fa8fcec3ce4f282158a05af4e7bca85ab4b102c470c237a8d3ce86b0243d9 |
|
MD5 | 40529ceda440b978a81a848a370c6378 |
|
BLAKE2b-256 | fea1a6afb74c3577f3ffcbcddbe6f535cd9c7c7a372b8a769aa54271d42e6bb6 |