Redis
Redis is used for caching to improve the performance and scalability of the application by reducing the load on the database.
sudo apt-get install redis-serverredis-serverpip install django-redisCACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': 'redis://127.0.0.1:6379/1',
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
}
}
}
Last updated