ZREVRANK
Since 1.1.0Sorted sets
Syntax
ZREVRANK key member [WITHSCORE]Returns the rank of member from the highest score, starting at 0. With WITHSCORE, the score too.
Reply
- The rank; with
WITHSCORE, an array of the rank and the score. nilif the member or the key does not exist.
Examples
> ZADD z 1 a 2 b 3 c
(integer) 3
> ZREVRANK z c
(integer) 0