Write multiple fields to a hash.
# Set multiple fields assert redis.hset("myhash"{ "field1": "Hello", "field2": "World" }) == 2
The key of the hash.
A dictionary of fields and their values.
The number of fields that were added.
Was this page helpful?