redis-cli LRANGE queue 0 -1

Category: Databases & SQL

redis-cli LRANGE queue 0 -1

Read a range of list items

Returns items from index 0 through -1 (the last item), i.e. the whole list. Indices can be negative, so LRANGE queue 0 4 gives the first five. Related: LPUSH.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.