ZRANGE
Returns a rank range of sorted-set members with their scores.
Sorted sets · Example verified
Syntax covered here
ZRANGE key start stop WITHSCORESThe tested range 0 through -1 includes all members in ascending score order.
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 2 b
2
# connection: default
> ZRANGE scores 0 -1 WITHSCORES
["a","1","b","2"]