ZINCRBY

Since 1.1.0Sorted sets

Syntax

ZINCRBY key increment member
  • Flags: fast, write
  • ACL categories: @fast, @sortedset, @write
  • Arity: 4

Adds increment to the score of member in the sorted set at key. A missing member is added with increment as its score.

Reply

  • The new score, as a bulk string.

Examples

> ZADD z 2 b
(integer) 1
> ZINCRBY z 2.5 b
"4.5"
> ZINCRBY z 1 new
"1"