HGET key field
Available since: 2.0.0
Time complexity: O(1)
ACL categories:
@read
@hash
@fast
Returns the value associated with field
in the hash stored at key
.
@return
@bulk-string-reply: the value associated with field
, or nil
when field
is not
present in the hash or key
does not exist.
@examples
redis> HSET myhash field1 "foo"
TBD
redis> HGET myhash field1
TBD
redis> HGET myhash field2