Skip to main content

INCRBY

Note

Official reference: INCRBY.

Increase a counter by an integer.

Syntax​

INCRBY key increment

Values and increments must be signed 64-bit integers. Non-integer content or overflow causes an error.

Results​

ReturnRowsContent
ResultSet1VALUE field, LONG type

Example​

SET demo:counter 10
INCRBY demo:counter 5