Module Hub Beta


key elem [elem ...]

A variadic variant for ZREVRANK, returns the reverse ranks of multiple members in a Sorted Set.

Return Value

Array reply: list of elements’ integer ranks.


redis> ZADD myzset 1 “one”
(integer) 1
redis> ZADD myzset 2 “two”
(integer) 1
redis> ZADD myzset 3 “three”
(integer) 1
redis> MZREVRANK myzset “one” “three”
1) (integer) 2
2) (integer) 0

© 2017 Redis Labs, Inc. All rights reserved.