ARGETRANGE
Since 1.1.0Arrays
Syntax
ARGETRANGE key start endReturns every slot from start to end, both included, nil for empty ones. With start greater than end, the slots come in reverse. A range of more than 1,000,000 slots is refused: use ARSCAN.
Examples
> ARGETRANGE a 0 5
1) "x"
2) "y"
3) "z"
4) (nil)
5) (nil)
6) "w"
> ARGETRANGE a 5 3
1) "w"
2) (nil)
3) (nil)