ZREVRANGEBYLEX
Returns a lexicographical range in reverse order.
Sorted sets · Example verified
Syntax covered here
ZREVRANGEBYLEX key max minThe case uses equal-score members and supplies the upper endpoint + before the lower endpoint -.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> ZADD scores 1 a 1 b
2
# connection: default
> ZREVRANGEBYLEX scores + -
["b","a"]