ZINCRBY
Note
Official reference: ZINCRBY.
Increase a member's score.
Syntax
ZINCRBY key increment member
Results
| Return | Rows | Content |
|---|---|---|
| ResultSet | 1 | SCORE field, DOUBLE type |
Caution
The driver currently reads the increment as an integer. For fractional increments, use ZADD ... INCR, for example ZADD demo:ranking INCR 0.5 alice.
Example
ZADD demo:ranking 10 alice
ZINCRBY demo:ranking 5 alice