Skip to main content

DECRBY

Note

Official reference: DECRBY.

Decrease a counter by an integer.

Syntax​

DECRBY key decrement

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
DECRBY demo:counter 3