HSET key field value
field in the hash stored at
key does not exist, a new key holding a hash is created. If
field already exists in the hash, it is overwritten.
Integer reply, specifically:
fieldis a new field in the hash and
fieldalready exists in the hash and the value was updated.
(integer) 1redis> HGET myhash field1
© 2009–2017 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.