HVALS
This page documents the preview (v2.21) version. Preview includes features under active development and is for development and testing only. For production, use the stable (v2024.1) version.
Synopsis
HVALS key
This command selects all the values in the hash that is associated with the given key.
- If the
keydoes not exist, an empty list is returned. - if the
keyis associated with a non-hash data, an error is raised.
Return value
Returns list of values in the specified hash.
Examples
$ HMSET yugahash area1 "America" area2 "Africa"
"OK"
$ HVALS yugahash
1) "America"
2) "Africa"
See also
hdel, hexists, hget, hgetall, hkeys, hlen, hmget, hmset, hset, hincrby, hstrlen