Arguments
str
required
The key of the hash.
str
required
The field to increment
float
required
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.5)
assert redis.hincrbyfloat("myhash", "field1", 10.1) - 15.6 < 0.0001
Increments the value of a hash field by a given float value.
redis.hset("myhash", "field1", 5.5)
assert redis.hincrbyfloat("myhash", "field1", 10.1) - 15.6 < 0.0001
Was this page helpful?