好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

redis hmset and set is not equviant

redis hmset and set is not equviant

e.g.
a=dict(a=1,b=2,c=3)
r=redis.Redis()
r.set("haha",a)
r.hget("haha","b")#this will raise a exception

the right way is as follows:
r.hmset("haha",a)#attenation:when you use this approach,if you use r.set("haha",a) first,this also will occur a exception
r.hget("haha","b")




查看更多关于redis hmset and set is not equviant的详细内容...

  阅读:39次

上一篇: Redis PPT abstract

下一篇:xrdp在ylmf下的问题