HINCRBYFLOAT

Adds a floating-point increment to a hash field.

Hashes · Example verified

Syntax covered here

HINCRBYFLOAT key field increment

A missing field in the prepared hash is initialized and receives the fractional increment.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> HSET user name Ada
1
# connection: default
> HINCRBYFLOAT user score 0.5
"0.5"