In Redis, the LRANGE
command returns the specified elements of the list stored at the specified key.
The command requires us to specify a start and stop position for the elements to return. These are zero based indexes, so 0
is the first element in the list.
We can specify -1
for the last element in the list.