Skip to main content

cache extension for django

None

Project description

=====
Django cache extension
=====


Quick start
-----------

1. Install ``cache extension`` by pip::

pip install django-cache-extension

2. For redis backend use cache like this::

config your cache file backend to cache_extension:

CACHES={
"default": {
'BACKEND': 'cache_extension.backends.redis.ExtensionRedisBackend',
'LOCATION': 'redis://redis:6379/0',
'TIMEOUT': '172800',
"KEY_PREFIX": "cache_extension",
'OPTIONS': {
"DB": 0,
"CLIENT_CLASS": "django_redis.client.DefaultClient",
'PARSER_CLASS': 'redis.connection.HiredisParser',
'PICKLE_VERSION': 2,
}
}
},

Project details

None

Download files

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

Source Distribution

django-cache-extension-1.0.5.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page