HVALS

AttentionThis page documents an earlier version. Go to the latest (v2.1)version.

Synopsis

HVALS keyThis command selects all the values in the hash that is associated with the given key.

  • If the key does not exist, an empty list is returned.
  • if the key is associated with a non-hash data, an error is raised.

Return Value

Returns list of values in the specified hash.

Examples

You can do this as shown below.


1. $ HMSET yugahash area1 "America" area2 "Africa"


1. "OK"


1. $ HVALS yugahash


1. 1) "America"
2. 2) "Africa"

See Also

hdel, hexists, hget, hgetall, hkeys, hlen, hmget, hmset, hset, hincrby, hstrlen