Arguments
str
required
The key to get.
str
required
The member to get the reverse rank of.
Response
The reverse rank of the member.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.zadd("myset", {"a": 1, "b": 2, "c": 3})
assert redis.zrevrank("myset", "a") == 2
Returns the rank of a member in a sorted set, with scores ordered from high to low.
redis.zadd("myset", {"a": 1, "b": 2, "c": 3})
assert redis.zrevrank("myset", "a") == 2
Was this page helpful?