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

使用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