redis (error) WRONGTYPE Operation against a key holding the wrong kind of value

2021/10/30 19:16:35

本文主要是介绍redis (error) WRONGTYPE Operation against a key holding the wrong kind of value,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

Redis 存取类型不一致错误

localhost:6381> hset k1bkp81gv3kla9429ta9fdp57td06bts 'fx' 33s
(error) WRONGTYPE Operation against a key holding the wrong kind of value
localhost:6381> type k1bkp81gv3kla9429ta9fdp57td06bts
string
localhost:6381> get k1bkp81gv3kla9429ta9fdp57td06bts
"{\"tenant_mode\":\"monitor\"}"
localhost:6381> del k1bkp81gv3kla9429ta9fdp57td06bts
(integer) 1
localhost:6381> hset k1bkp81gv3kla9429ta9fdp57td06bts 'fx' 33s
(integer) 1

 



这篇关于redis (error) WRONGTYPE Operation against a key holding the wrong kind of value的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程