Arguments
str
required
The key of the sorted set.
int
required
The increment to add to the score.
str
required
The member to increment.
Response
The new score of
member after the increment operation.Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
redis.zadd("myset", {"one": 1, "two": 2, "three": 3})
assert redis.zincrby("myset", 2, "one") == 3
Increment the score of a member.
member after the increment operation.redis.zadd("myset", {"one": 1, "two": 2, "three": 3})
assert redis.zincrby("myset", 2, "one") == 3
Was this page helpful?