Skip to content

HGETALL

HGETALL key

HGETALL returns all the field-value pairs (we call it HElements) from the string-string map stored at key.

The command returns empty list if the key does not exist or the map is empty. Note that the order of the elements is not guaranteed.

localhost:7379> HSET k1 f1 v1 f2 v2 f3 v3
OK 3
localhost:7379> HGETALL k1
OK
0) f1="v1"
1) f2="v2"
2) f3="v3"
localhost:7379> HGETALL k2
OK