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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad51f16e90d961983f916f18c3c3af72ecb2c3ecf43dd657322086cb3afa11b |
|
MD5 | 8d83cb802fae84e77a7db554ead94e56 |
|
BLAKE2b-256 | 4bf4c16600d01f2840c0c5cfaf6740f33d47f7669da0b6e865c6834fa380ef0f |
Close
Hashes for django_requests_cache-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f97cbaeba5a33d363775ac28499e7c7da36da058087f067fe4c6c5ba8a2e5351 |
|
MD5 | cfc186a664c37887cc2c6dc92b7c033c |
|
BLAKE2b-256 | 67fea1bc63852750bea8baf06a1d6f1bd6df263399a6d6d1b4c33b3038966114 |