Return the requested fields and their values.
redis.hset("myhash", values={ "field1": "Hello", "field2": "World" }) assert redis.hmget("myhash", "field1", "field2") == ["Hello", "World"]
The key of the hash.
One or more fields to get.
An object containing the fields and their values.
Was this page helpful?