# HGETALL Returns all fields and values of the hash stored at `key`. In the returned value, every field name is followed by its value, so the length of the reply is twice the size of the hash. ## Examples redis> HSET myhash field1 "Hello" (integer) 1 redis> HSET myhash field2 "World" (integer) 1 redis> HGETALL myhash 1) "field1" 2) "Hello" 3) "field2" 4) "World" Give these commands a try in the interactive console: HSET myhash field1 "Hello" HSET myhash field2 "World" HGETALL myhash ## Return information {{< multitabs id="hgetall-return-info" tab1="RESP2" tab2="RESP3" >}} [Array reply](../../develop/reference/protocol-spec#arrays): a list of fields and their values, or an empty list when key does not exist. -tab-sep- [Map reply](../../develop/reference/protocol-spec#maps): a map of fields and their values, or an empty list when key does not exist.