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
| Return | Rows | Content |
|---|---|---|
| ResultSet | multiple | ELEMENT field, STRING type |
Example
RPUSH demo:queue first second
LRANGE demo:queue 0 1