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
Reading the code for Hset, this package is comparing the return value to 1 to determine the bool return value.
According to the redis docs for HSET, a return value of 1 indicates a new field was added to the hash with the value given, while a return value of 0 means the given field was already in the hash and it's value was updated.
So a return of 0 or 1 both should indicate a successful return value, shouldn't it?
The text was updated successfully, but these errors were encountered:
Reading the code for
Hset
, this package is comparing the return value to 1 to determine thebool
return value.According to the redis docs for
HSET
, a return value of1
indicates a newfield
was added to the hash with thevalue
given, while a return value of0
means the givenfield
was already in the hash and it'svalue
was updated.So a return of
0
or1
both should indicate a successful return value, shouldn't it?The text was updated successfully, but these errors were encountered: