RedisListView
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
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.
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.
Value parameters
- end
-
index of the last element included
- from
-
initial index
Attributes
- Returns
-
collection at the specified range
Concrete methods
Helper method of slice. For more details see that method.
Helper method of slice. For more details see that method.
Attributes
- Returns
-
whole collection
Helper method of slice. For more details see that method.
Helper method of slice. For more details see that method.
Value parameters
- n
-
ignore initial N elements
Attributes
- Returns
-
rest of the collection ignoring initial N elements
Helper method of slice. For more details see that method.
Helper method of slice. For more details see that method.
Value parameters
- n
-
takes initial N elements
Attributes
- Returns
-
first N elements of the collection if exist