redis-cli ZRANGE scores 0 -1 WITHSCORES

Category: Databases & SQL

redis-cli ZRANGE scores 0 -1 WITHSCORES

List sorted-set members in rank order

Returns members from lowest to highest score; WITHSCORES prints the scores alongside. ZREVRANGE gives the descending order. Related: ZADD.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.