INCR
Note
Official reference: INCR.
Increment an integer by one, starting from zero for a missing key.
Syntax
INCR key
Values and increments must be signed 64-bit integers. Non-integer content or overflow causes an error.
Results
| Return | Rows | Content |
|---|---|---|
| ResultSet | 1 | VALUE field, LONG type |
Example
SET demo:counter 10
INCR demo:counter