redis WRONGTYPE Operation against a key holding the wrong kind of value
来源:互联网 发布:caffe googlenet 分类 编辑:程序博客网 时间:2024/05/16 02:00
redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key holding the wrong kind of value
今天改动代码,一运行就跑错了,错误原因:
因为redis中已经存在了相同的key, 而且key对应的值类型并不是Set,而是SortSet(改动前);再调用smembers时,抛出此错误。
解决方法:
将原来的SortSet类型的key给Del掉,再从新执行代码,没有问题。
看来以后改动缓存类型时,要长个心眼,先把之前的同名不同类型的Key给Del掉。
0 0
- 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
- 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
- **Appium1.6.3 + Mac os 10.12 + python 2.7 + IOS10安装笔记**
- ASP.NET Web API 之 ValuesController
- 几种对齐方式
- MFC--CListCtrl控件
- rhel7.2 安装oracle11g
- redis WRONGTYPE Operation against a key holding the wrong kind of value
- 记录开机自启日报系统
- Linux权限详解:用户、用户组及文件权限
- Rx 入门(五)-- 转换操作符
- C++ vector<int>向量越界。。。运行段错误退出但gdb未定义到错误位置
- 16.Java 基础
- Linux
- Windows10 Java环境变量配置
- 矩阵乘法 nyoj 623