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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540518ede2656a751e202c46365a34fe7c5e92e52e1389291a08f53e62f37574 |
|
MD5 | 39debf79f5eccafb85696ed40c5d5bce |
|
BLAKE2b-256 | 92f00d3d96da099ef64f1f2def66292f06d1edcc3b53ba55bf54301edc761ca7 |
Close
Hashes for django_requests_cache-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4485b09ec3de8ac852b2f708f131474ce4c98b91ed1d48997ad620b492994c21 |
|
MD5 | 99c1e8e9925c247a50c2c8ab2117f443 |
|
BLAKE2b-256 | 3f6c089ab694de91f656b096be8094abb92ac0451358e9fc83d2ac959d07dbf7 |