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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17d992ec0ddec114b9b2a44414035709f9fb89ceea7c9f5e63b6d5a3301ee413 |
|
MD5 | 925f856a6a23f519fdf66dbc958333da |
|
BLAKE2b-256 | e8018a815b999f3a262e290ca1e82941ed016216a9dd3d66d1365f7443146136 |
Close
Hashes for django_requests_cache-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 675c1bce71bacd3ec59c9e542586b355138c58695f391a4f98dc229102d23657 |
|
MD5 | e12e4ba873ce506c0d2fbd33a0826139 |
|
BLAKE2b-256 | 6b0d7ec123917bb29dc96ba0591164b058843ec272b9049e14d8a8e4cc1c10b5 |