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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ca46b5c6775662d5813a3883d637cddd37809ca2d4c775bd48c9a63be7fc07a |
|
MD5 | aeef961dd29760e52c0d7455a588573c |
|
BLAKE2b-256 | c6f4752008bf98c6d1c65e35d96377bc271819878a9bcda32c2b083eada9e35b |
Close
Hashes for django_requests_cache-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d616b785fdcce06394ae50f623e74d9033ad7f88530b5b17b116991610c29fe |
|
MD5 | 4417dc9bbabfa3db34e534eecae9e0bc |
|
BLAKE2b-256 | 46d7bec444775d26ad57635619cea784d4d249966e9a2d5f92a17cb6fe3a90d9 |