WRONGTYPE Operation against a key holding the wrong kind of value

这种错误是由于查询Redis时采用的查询方法与对应的Key的数据类型不匹配引起的

Redis的五种数据类型:

字符串(Strings)

列表(Lists)

集合(Sets)

哈希(Hashes)

有序集合(Sorted Sets)

 

posted @ 2016-07-08 11:46  薛晓东  阅读(852)  评论(0编辑  收藏  举报