How to use hset with django-redis-cache?

送分小仙女□ 提交于 2020-03-19 05:32:14

问题


I am new in django/redis and i'm starting to familiarize with heroku redis addon. However, i can only use set and get.

When i'm trying to use other methods like hset , i get this error : 'RedisCache' object has no attribute

cache.hset('key', 'value')

How can i manage this ?

来源:https://stackoverflow.com/questions/48551562/how-to-use-hset-with-django-redis-cache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!