WRONGTYPE Operation against a key holding the wrong kind of value

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WRONGTYPE Operation against a key holding the wrong kind of value相关的知识,希望对你有一定的参考价值。

get test
WRONGTYPE Operation against a key holding the wrong kind of value
针对持有错误类型值的键的错误类型操作

查看test的类型
type test ----------->list

redis查看list列表
lrange key start end: 获取链表中从start开始到end的值
lrange key 0 -1 就是获取从第一个元素到倒数第一个元素,也就是获取全部元素,这个命令经常用到。
lrange test 0 -1 #查看整个list列表

以上是关于WRONGTYPE Operation against a key holding the wrong kind of value的主要内容,如果未能解决你的问题,请参考以下文章

解决:Caused by: redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key

解决:Caused by: redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key

WRONGTYPE Operation against a key holding the wrong kind of value:类型搞混弄出的错误

Redis报错:WRONGTYPE Operation against a key holding the wrong kind of value 解决处理

WRONGTYPE 对持有错误值 php 的键的操作

hdu 1848 Fibonacci again and again