Available since: 2.6.0
Time complexity: O(1)
Increment the specified
field of a hash stored at
key, and representing a
floating point number, by the specified
increment. If the increment value
is negative, the result is to have the hash field value decremented instead of incremented.
If the field does not exist, it is set to
0 before performing the operation.
An error is returned if one of the following conditions occur:
Bulk string reply: the value of
field after the increment.
The command is always propagated in the replication link and the Append Only
File as a
HSET operation, so that differences in the underlying floating point
math implementation will not be sources of inconsistency.