HVALS key
HVALS returns all the associated values. In other words, the Redis HVALS command is used to get all the values in the hash stored at the key.
TIME COMPLEXITY: O(N), where N is the total number of entries
RETURN VALUE: It returns an array list of values associated with the given key.
Syntax:
HVALS key
Example 1: When the key is present.
redis:6379> HVALS myhash1) "200"
Output
1) "200"
Example 2: When the key is not present.
redis:6379> HVALS myhash3(empty array)
Output
empty array
No comments:
Post a Comment