Arguments
str
required
The key of the hash.
*List[str]
required
One or more fields to get.
Response
An object containing the fields and their values.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.hset("myhash", values={
"field1": "Hello",
"field2": "World"
})
assert redis.hmget("myhash", "field1", "field2") == ["Hello", "World"]
Return the requested fields and their values.
redis.hset("myhash", values={
"field1": "Hello",
"field2": "World"
})
assert redis.hmget("myhash", "field1", "field2") == ["Hello", "World"]
Was this page helpful?