Skip to main content

HINCRBY

Note

Official reference: HINCRBY.

Increase a hash field by an integer.

Syntax​

HINCRBY key field increment

increment is a signed 64-bit integer; a missing field starts at zero.

Results​

ReturnRowsContent
ResultSet1VALUE field, LONG type

Example​

HSET demo:user age 18
HINCRBY demo:user age 1