Arguments
str
required
The key of the hash.
Dict[str, Any]
required
A dictionary of fields and their values.
Response
The number of fields that were added.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
# Set multiple fields
assert redis.hset("myhash"{
"field1": "Hello",
"field2": "World"
}) == 2
Write multiple fields to a hash.
# Set multiple fields
assert redis.hset("myhash"{
"field1": "Hello",
"field2": "World"
}) == 2
Was this page helpful?