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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c8e9a2832e0c16cc0ab3804b4a09415d787fb6855866db60d7e8160aba01966 |
|
MD5 | b1ff696a5ad6c50cfac98ab06cd43c59 |
|
BLAKE2b-256 | 84bac1384e892a7f743f95aa16230f4a409e467b65af20b587934028435db003 |
Close
Hashes for django_requests_cache-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcc8f49ed923b10da4073669f54afced854cca608d4bf9b419c14f139cbe9c18 |
|
MD5 | 514f0c4dc2773f97a57ac4aeb2002c76 |
|
BLAKE2b-256 | 9cae19967c4782ac46533ec3fbf503487752e7d9e6c750e250658358f4a220b3 |