AttentionThis page documents an earlier version. Go to the latest version.
HMGET key field [field ...]
This command fetches one or more values for the given fields of the hash that is associated with the given
field, (null) is returned if either
fielddoes not exist.
keyis associated with a non-hash data, an error is raised.
Returns list of string values of the fields in the same order that was requested.
$ HMSET yugahash area1 "Africa" area2 "America"
$ HMGET yugahash area1 area2 area_none
1) "Africa" 2) "America" 3) (null)