Returns the specified elements of the list stored at key.
Returns the specified elements of the list stored at key. The offsets start and stop are zero-based indexes, with 0 being the first element of the list (the head of the list), 1 being the next element and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list. For example, -1 is the last element of the list, -2 the penultimate, and so on.
Time complexity: O(S+N) where S is the distance of start offset from HEAD for small lists, from nearest end (HEAD or TAIL) for large lists; and N is the number of elements in the specified range.
Out-of-range indexes Out of range indexes will not produce an error. If start is larger than the end of the list, an empty list is returned. If stop is larger than the actual end of the list, Redis will treat it like the last element of the list.
initial index
index of the last element included
collection at the specified range
Helper method of slice.
Helper method of slice. For more details see that method.
whole collection
Helper method of slice.
Helper method of slice. For more details see that method.
ignore initial N elements
rest of the collection ignoring initial N elements
Helper method of slice.
Helper method of slice. For more details see that method.
takes initial N elements
first N elements of the collection if exist