How to use redis commands for lists and sets in a Django application

I am working on a Django application where I want to use redis for caching purposes.

I see that there are several packages, such as django-redis and django-redis-cache, that integrate with Django, and can be used to access redis.

But with these packages you only have the get and set commands.

How to use other redis commands for lists, sets, sorted sets, such as rpush, lrange, zadd?

Can we use it with the above packages (django-redis, django-redis-cache), or do we need to use the redis-py client?

Thank you for your help!

+4
source share
1

raw redis connection django-redis. , redis-py, .

+7

Source: https://habr.com/ru/post/1532434/


All Articles