public interface BoundListOperations<K,V> extends BoundKeyOperations<K>
| Modifier and Type | Method and Description |
|---|---|
RedisOperations<K,V> |
getOperations() |
V |
index(long index)
Get element at
index form list at the bound key. |
V |
leftPop()
Removes and returns first element in list stored at the bound key.
|
V |
leftPop(long timeout,
TimeUnit unit)
Removes and returns first element from lists stored at the bound key .
|
Long |
leftPush(V value)
Prepend
value to the bound key. |
Long |
leftPush(V pivot,
V value)
Prepend
values to the bound key before value. |
Long |
leftPushAll(V... values)
Prepend
values to the bound key. |
Long |
leftPushIfPresent(V value)
Prepend
values to the bound key only if the list exists. |
List<V> |
range(long start,
long end)
Get elements between
begin and end from list at the bound key. |
Long |
remove(long count,
Object value)
Removes the first
count occurrences of value from the list stored at the bound key. |
V |
rightPop()
Removes and returns last element in list stored at the bound key.
|
V |
rightPop(long timeout,
TimeUnit unit)
Removes and returns last element from lists stored at the bound key.
|
Long |
rightPush(V value)
Append
value to the bound key. |
Long |
rightPush(V pivot,
V value)
Append
values to the bound key before value. |
Long |
rightPushAll(V... values)
Append
values to the bound key. |
Long |
rightPushIfPresent(V value)
Append
values to the bound key only if the list exists. |
void |
set(long index,
V value)
Set the
value list element at index. |
Long |
size()
Get the size of list stored at the bound key.
|
void |
trim(long start,
long end)
Trim list at the bound key to elements between
start and end. |
List<V> range(long start, long end)
begin and end from list at the bound key.start - end - void trim(long start,
long end)
start and end.start - end - Long size()
Long leftPush(V value)
value to the bound key.value - Long leftPushAll(V... values)
values to the bound key.values - Long leftPushIfPresent(V value)
values to the bound key only if the list exists.value - Long leftPush(V pivot, V value)
values to the bound key before value.value - Long rightPush(V value)
value to the bound key.value - Long rightPushAll(V... values)
values to the bound key.values - Long rightPushIfPresent(V value)
values to the bound key only if the list exists.value - Long rightPush(V pivot, V value)
values to the bound key before value.value - void set(long index,
V value)
value list element at index.index - value - Long remove(long count, Object value)
count occurrences of value from the list stored at the bound key.count - value - V index(long index)
index form list at the bound key.index - V leftPop()
V leftPop(long timeout, TimeUnit unit)
timeout reached.timeout - unit - must not be null.V rightPop()
V rightPop(long timeout, TimeUnit unit)
timeout reached.timeout - unit - must not be null.RedisOperations<K,V> getOperations()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.