首页 > 其他分享 >WRONGTYPE Operation against a key holding the wrong kind of value

WRONGTYPE Operation against a key holding the wrong kind of value

时间:2022-10-12 10:03:55浏览次数:44  
标签:kind end holding WRONGTYPE start lrange key test

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列表

标签:kind,end,holding,WRONGTYPE,start,lrange,key,test
From: https://blog.51cto.com/u_13236892/5748966

相关文章