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

Redis access type inconsistency error

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

 

Similar Posts: