HMGET
HMGET key field [field ...]
- Available since:
- Redis Open Source 2.0.0
- Time complexity:
- O(N) where N is the number of fields being requested.
- ACL categories:
-
@read,@hash,@fast, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
Returns the values associated with the specified fields in the hash stored at key.
For every field that does not exist in the hash, a nil value is returned. Because non-existing keys are treated as empty hashes, running HMGET against a non-existing key will return a list of nil values.
Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise | Redis Cloud | Notes |
|---|---|---|
| ✅ Standard | ✅ Standard |
Return information
Array reply: a list of values associated with the given fields, in the same order as they are requested.