Mehran Akhavan
Mehran Akhavan

Reputation: 593

Django efficient way to operate on cache values using redist

I want to operate on cache values using Redis cache system. Redis has many good operations itself, but cache module in Django doesn't support them. I know for using Redis methods I can import Redis and create a client and use these methods, but using this method we must create client each time and try to connect to the Redis server. Is this an efficient way to use Redis in Django in large scale requests?

Upvotes: 1

Views: 89

Answers (1)

Anentropic
Anentropic

Reputation: 33823

Other people have faced the same issue and have created Redis cache backends for Django so you can just import one of those, eg

https://django-redis.readthedocs.org/en/latest/

Upvotes: 2

Related Questions