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.
Was this page helpful?