HMGET
Syntax
HMGET key field [field ...]
- Available since:
- 2.0.0
- Time complexity:
- O(N) where N is the number of fields being requested.
- ACL categories:
-
@read
,@hash
,@fast
,
返回存储在key
中的哈希表中与指定fields
相关联的值。
对于哈希中不存在的每个field
,将返回一个nil
值。
因为不存在的键被视为空哈希,所以对不存在的key
运行HMGET
将返回一个nil
值的列表。