Skip to main content

LRANGE

Note

Official reference: LRANGE.

Read elements in an index range.

Syntax

LRANGE key start stop

start/stop are zero-based and inclusive; -1 denotes the last element.

Results

ReturnRowsContent
ResultSetmultipleELEMENT field, STRING type

Example

RPUSH demo:queue first second
LRANGE demo:queue 0 1