You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.hget() does not return the type that has been set with .hset()
awaitkv.hset(`key`,{code1: '123456',code2: '000001'})// code is a stringconstvalue=awaitkv.hgetall(`key`)console.log(typeofvalue.code1)// code is a numberconsole.log(typeofvalue.code2)// code is a string
With automaticDeserialization: false as mentioned here: #250
console.log(typeofvalue)// value is an 'object'console.log(typeofvalue.code)// code is undefinedconsole.log(typeofJSON.parse(value))// is not a valid JSON
The text was updated successfully, but these errors were encountered:
.hget()
does not return the type that has been set with.hset()
With
automaticDeserialization: false
as mentioned here: #250The text was updated successfully, but these errors were encountered: