WRONGTYPE Operation against a key holding the wrong kind of value
来源:互联网 发布:java培训出来的工资 编辑:程序博客网 时间:2024/05/16 07:36
今天改动代码,一运行就跑错了,错误原因:
因为redis中已经存在了相同的key, 而且key对应的值类型并不是Set,而是SortSet(改动前);再调用smembers时,抛出此错误。
解决方法:
将原来的SortSet类型的key给Del掉,再从新执行代码,没有问题。
看来以后改动缓存类型时,要长个心眼,先把之前的同名不同类型的Key给Del掉。
0 0
- WRONGTYPE Operation against a key holding the wrong kind of value
- WRONGTYPE Operation against a key holding the wrong kind of value
- redis WRONGTYPE Operation against a key holding the wrong kind of value
- redis下的错误WRONGTYPE Operation against a key holding the wrong kind of value
- WRONGTYPE Operation against a key holding the wrong kind of value
- WRONGTYPE Operation against a key holding the wrong kind of value
- Redis报错:ERR Operation against a key holding the wrong kind of value 解决处理
- Redis报错:ERR Operation against a key holding the wrong kind of value 解决处理
- Redis报错:ERR Operation against a key holding the wrong kind of value 解决处理
- Redis报错:ERR Operation against a key holding the wrong kind of value 解决处理
- 【redis】WRONGTYPE Operation against a key holding
- 【redis】WRONGTYPE Operation against a key holding
- 【redis】WRONGTYPE Operation against a key holding
- redis.clients.jedis.exceptions.JedisDataException: ERR Operation against a key holding the wrong kin
- Redis redis.clients.jedis.exceptions.JedisDataException: ERR Operation against a key holding the wr
- redis3.0 redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key holdin
- The reft operation of '&' is a garbage value
- The parameter is (or has an element that is) the wrong kind of geometry
- linq和EF查询的用法和区分
- 解决HTML5布局,兼容IE问题
- @Responsebody与@RequestBody
- HTML5——地图应用
- HTML5——同步购物车
- WRONGTYPE Operation against a key holding the wrong kind of value
- MongoDB 客户端 MongoVue
- MongoDB学习与BUG解答
- CSS3——动画效果
- Linq表达式开窍
- 解决 SQL Server Profiler 跟踪[不断]出现检索数据
- 立委科普:信息抽取
- 附加进程的作用→_→
- Jquery-EasyUI学习~