redis/lrange

List Range

Get list elements

list
data-structure

Command

LRANGE key start stop

Explanation

Returns the specified elements of the list stored at key.

Examples

Get all elements

LRANGE tasks 0 -1

Get first 3 elements

LRANGE tasks 0 2