HGETALL
Syntax
HGETALL key
- Available since:
- 2.0.0
- Time complexity:
- O(N) where N is the size of the hash.
- ACL categories:
-
@read
,@hash
,@slow
,
返回存储在key
处的哈希的所有字段和值。
在返回值中,每个字段名称后面都跟着它的值,因此回复的长度是哈希大小的两倍。
HGETALL key
@read
,
@hash
,
@slow
,
返回存储在key
处的哈希的所有字段和值。
在返回值中,每个字段名称后面都跟着它的值,因此回复的长度是哈希大小的两倍。