As of Redis version 6.2.0, this command is regarded as deprecated.
It can be replaced by ZRANGE
with the REV
and BYLEX
arguments when migrating or writing new code.
ZREVRANGEBYLEX key max min [LIMIT offset count]
@read
,
@sortedset
,
@slow
,
When all the elements in a sorted set are inserted with the same score, in order to force lexicographical ordering, this command returns all the elements in the sorted set at key
with a value between max
and min
.
Apart from the reversed ordering, ZREVRANGEBYLEX
is similar to ZRANGEBYLEX
.