Hash

HVALS

Returns all values in the hash stored at key.

Arguments

keybodystrrequired

The key of the hash.

Response

List[str]required

All values in the hash, or an empty list when key does not exist.

Example
redis.hset("myhash", values={  "field1": "Hello",  "field2": "World"})assert redis.hvals("myhash") == ["Hello", "World"]
Loading search…