python操作redis:redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value报错原因

时间:2020-04-03 15:33:42   收藏:0   阅读:221

使用python操作redis数据库时经常报错:redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value

其实提示信息已经很明确了,操作的时候数据类型有误,比如你操作list时,key的value值的类型确为string类型,所以就会报错,所以如果遇到这个问题,请检查数据类型是否对应上了。

原文:https://www.cnblogs.com/lxmtx/p/12625561.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!