Hash
HGETALL
Retrieves all fields from a hash.
Arguments
keybodystrrequired
The key to get.
Response
Optional[str]required
An object with all fields in the hash.
Example
redis.hset("myhash", values={"field1": "Hello","field2": "World"})assert redis.hgetall("myhash") == {"field1": "Hello", "field2": "World"}