diff options
Diffstat (limited to 'iredis/data/commands/hgetall.md')
-rw-r--r-- | iredis/data/commands/hgetall.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/iredis/data/commands/hgetall.md b/iredis/data/commands/hgetall.md new file mode 100644 index 0000000..3717f00 --- /dev/null +++ b/iredis/data/commands/hgetall.md @@ -0,0 +1,16 @@ +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. + +@return + +@array-reply: list of fields and their values stored in the hash, or an +empty list when `key` does not exist. + +@examples + +```cli +HSET myhash field1 "Hello" +HSET myhash field2 "World" +HGETALL myhash +``` |