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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1db1d315330ad542b6d10978e694dec7fbc6c7488fa2362012ba20990af3ed4d |
|
MD5 | a79778164f494744e377df77ce6e0de5 |
|
BLAKE2b-256 | 9060216612c6386b74f75ec35545a804b79a46fc17bcbcd93bc391dba653caa8 |
Close
Hashes for django_requests_cache-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fdf63b38db193a7f0b2721480e5bf862538a3b93e33bc7928a8a9f737c3ffb4 |
|
MD5 | 3379982580a045e3174fefaf6a875ef0 |
|
BLAKE2b-256 | dbf4fd09360a229e59ba097db7b7ffb5eb2aaf0385c595fde5a321454f3c543c |