Skip to main content

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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-requests-cache, version 0.1.11
Filename, size File type Python version Upload date Hashes
Filename, size django_requests_cache-0.1.11-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-requests-cache-0.1.11.tar.gz (9.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page