redis and list | Mar 3, 2016
Inserts value
at the head of the list stored at key
, only if key
already
exists and holds a list.
In contrary to LPUSH
, no operation will be performed when key
does not yet
exist.
redis and list | Mar 3, 2016
Insert all the specified values at the head of the list stored at key
.
If key
does not exist, it is created as empty list before performing the push
operations.
When key
holds a value that is not a list, an error is returned.
redis and list | Mar 3, 2016
Removes and returns the first element of the list stored at key
.
redis and list | Mar 3, 2016
Returns the length of the list stored at key
.
If key
does not exist, it is interpreted as an empty list and 0
is returned.
An error is returned when the value stored at key
is not a list.
redis and list | Mar 3, 2016
Inserts value
in the list stored at key
either before or after the reference
value pivot
.
redis and list | Mar 3, 2016
Returns the element at index index
in the list stored at key
.
The index is zero-based, so 0
means the first element, 1
the second element
and so on.
Negative indices can be used to designate elements starting at the tail of the
list.
Here, -1
means the last element, -2
means the penultimate and so forth.