Django Using Redis with Django - Caching Backend


Using django-redis-cache or django-redis are both effective solutions for storing all cached items. While it is certainly possible for Redis to be setup directly as a SESSION_ENGINE, one effective strategy is to setup the caching (as above) and declare your default cache as a SESSION_ENGINE. While this is really the topic for another documentaiton article, its relevance leads to inclusion.

Simply add the following to

SESSION_ENGINE = "django.contrib.sessions.backends.cache"