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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6618a0d574072919af625aaf3ec38a8209e2abef58d3cfcbf8141f2f0b77683 |
|
MD5 | 2b1614413c11b260d4755030d8bcae96 |
|
BLAKE2b-256 | 306099fb26fa813a61c76d36dbcd85256ff597efd13606b7e0ab7b6dcf873d80 |
Close
Hashes for django_requests_cache-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 358971a3dda8cc48c773230fe8221ec5c15d347f58675edfa8cc250c62e3c62f |
|
MD5 | 20bf468c0d6a06f420d52f6286507433 |
|
BLAKE2b-256 | 1d94abaf68475852df8015326ba1e108b20bb206116d5e2580f8df41bedea75a |