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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3551b580f1f7590ff2825c5bf3a35403c3e26ab25a31640fed722170534d253 |
|
MD5 | c6793db4c12e0ad269aa5d1851946995 |
|
BLAKE2b-256 | 375330b13469a31cf93a04ac17fecd9cf31761f82fe674a48914fba7b59c6493 |
Close
Hashes for django_requests_cache-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b4e37b1b5c027f28f21b8d35445f7f150b2f8918f054b988ab0333dad49c63 |
|
MD5 | 54da3be577e662367c80ebe597d4aed8 |
|
BLAKE2b-256 | 59cce97cf1bf51ebf0cd78348fd58c6f93f5b8a92da94496c4059e01653b726b |