HINCRBYFLOAT

Since 1.1.0Hashes

Syntax

HINCRBYFLOAT key field increment
  • Flags: fast, write
  • ACL categories: @fast, @hash, @write
  • Arity: 4

Adds increment, a floating-point number, to the value of field in the hash at key. A missing field counts as 0.

Reply

  • The value after the increment, as a bulk string.

Examples

> HINCRBYFLOAT u score 1.5
"1.5"
> HINCRBYFLOAT u score 0.25
"1.75"