HGET key field
Returns the value associated with field
in the hash stored at key
.
Bulk string reply: the value associated with field
, or nil
when field
is not present in the hash or key
does not exist.
(integer) 1
redis> HGET myhash field1 "foo"
redis> HGET myhash field2 (nil)
© 2009–2018 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/hget