Arguments
str
required
The key of the hash.
str
required
The field to increment
int
How much to increment the field by. Can be negative to subtract.
Response
The new value of the field after the increment.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.hset("myhash", "field1", 5)
assert redis.hincrby("myhash", "field1", 10) == 15
Increments the value of a hash field by a given amount
redis.hset("myhash", "field1", 5)
assert redis.hincrby("myhash", "field1", 10) == 15
Was this page helpful?