redis.zadd("myset", {"one": 1, "two": 2, "three": 3})

assert redis.zincrby("myset", 2, "one") == 3

Arguments

key
str
required
The key of the sorted set.
increment
int
required
The increment to add to the score.
member
str
required
The member to increment.

Response

The new score of member after the increment operation.
redis.zadd("myset", {"one": 1, "two": 2, "three": 3})

assert redis.zincrby("myset", 2, "one") == 3