HGETALL
Syntax
Section titled “Syntax”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.
Examples
Section titled “Examples”localhost:7379> HSET k1 f1 v1 f2 v2 f3 v3OK 3localhost:7379> HGETALL k1OK0) f1="v1"1) f2="v2"2) f3="v3"localhost:7379> HGETALL k2OK