django-redis

Django caching with Redis

Django caching with Redis Question: I have implemented django caching using redis following this blog: https://realpython.com/caching-in-django-with-redis/ So I followed this, installed the package, Added in CACHES = { “default”: { “BACKEND”: “redis_cache.RedisCache”, “LOCATION”: “redis://127.0.0.1:8000/”, “OPTIONS”: { “CLIENT_CLASS”: “django_redis.client.DefaultClient” }, “KEY_PREFIX”: “example” } } Then in views. from django.conf import settings from django.core.cache.backends.base import DEFAULT_TIMEOUT from …

Total answers: 2