value

UK[ˈvælju:] US[ˈvælju]

n.Value, price; meaning, connotation; importance; face value (of a stamp)

vt.Evaluate; value, value; evaluate, price...

Third person singular: values ​​Plural: values ​​Present participle: valuing Past tense: valued Past participle: valued

redis HVALS command syntax

Function: Return the values ​​of all fields in the hash table key.

Syntax: HVALS key

Available versions: >= 2.0.0

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

Returns: A table containing all the values ​​in the hash table. When key does not exist, an empty list is returned.

redis HVALS command example

# 非空哈希表
redis> HMSET website google www.google.com yahoo www.yahoo.com
OK
redis> HVALS website
1) "www.google.com"
2) "www.yahoo.com"
# 空哈希表/不存在的key
redis> EXISTS not_exists
(integer) 0
redis> HVALS not_exists
(empty list or set)