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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0754c4ef03397f120cbf1d195b75e1360b1c73c76e15fb80c61e66ec18d2cb21 |
|
MD5 | 8c728c5a5ca96850ac98209156b34581 |
|
BLAKE2b-256 | 4f261b1f55ffe983103071e7757bc60181dcafe4832513f76247ff43b69ba19d |
Close
Hashes for django_requests_cache-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31aeecf7a0792785a0ad78beee7e44d6260bc9d8a94f8809c497d70a2eef4776 |
|
MD5 | 0ddfd30389c158e76016731ce35f8fb6 |
|
BLAKE2b-256 | a5bc5e6311f3c8f38860902c188d40d3ea06ec0c39be9352145bae4c7be7c338 |