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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7433bd290277a318d7ceccedeb5c65d7d88a25cc90257dfe93cb21b15f0acc |
|
MD5 | 54fe1d15f8ad3e57d09fc05c147bcde8 |
|
BLAKE2b-256 | 52e28ce25dfa7a1c23853211d1720bfc1f14adc840180b6de7f84d4c3ba91970 |
Close
Hashes for django_requests_cache-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b50d90295278ba724fb4c2d3e1d65f2acec87c73dcf613abff2e723c5592320 |
|
MD5 | fda48ed4981b35bafa43d59d793f9219 |
|
BLAKE2b-256 | c50012924c57f2050f6cee0e5f25df90be49ee3e5ecef44e53ed25cc1d30b29f |