HVALS

Syntax

  1. HVALS key

Time complexity: O(N) where N is the size of the hash.

Returns all values in the hash stored at key.

Return

Array reply: list of values in the hash, or an empty list when key does not exist.

Examples

  1. dragonfly> HSET myhash field1 "Hello"
  2. (integer) 1
  3. dragonfly> HSET myhash field2 "World"
  4. (integer) 1
  5. dragonfly> HVALS myhash
  6. 1) "Hello"
  7. 2) "World"