public interface IListCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
blPop(K key,
long timeoutSeconds)
Removes and returns first element from lists stored at
key . |
V |
brPop(K key,
long timeoutSeconds)
Removes and returns last element from lists stored at
key. |
V |
brPoplPush(K srcKey,
K dstKey,
long timeoutSeconds)
Remove the last element from list at
srcKey, append it to dstKey and return its value.Blocks connection until element available or timeoutSeconds reached. |
V |
lIndex(K key,
long index)
Get element at
index form list at key. |
Long |
lLen(K key)
Get the size of list stored at
key. |
V |
lPop(K key)
Removes and returns first element in list stored at
key. |
Long |
lPush(K key,
Collection<V> values)
Prepend
values to key. |
Long |
lPush(K key,
V... values)
Prepend
values to key. |
Long |
lPush(K key,
V value)
Prepend
value to key. |
Long |
lPushx(K key,
V value)
Prepend
values to key only if the list exists. |
List<V> |
lRange(K key,
long start,
long end)
Get elements between
begin and end from list at key. |
Long |
lRem(K key,
long count,
V value)
Removes the first
count occurrences of value from the list stored at key. |
void |
lSet(K key,
long index,
V value)
Set the
value list element at index. |
void |
ltrim(K key,
long start,
long end)
Trim list at
key to elements between start and end. |
V |
rPop(K key)
Removes and returns last element in list stored at
key. |
V |
rPoplPush(K srcKey,
K dstKey)
Remove the last element from list at
sourceKey, append it to destinationKey and return its value. |
Long |
rPush(K key,
Collection<V> values)
Append
values to key. |
Long |
rPush(K key,
V... values)
Append
values to key. |
Long |
rPush(K key,
V value)
Append
value to key. |
Long |
rPushx(K key,
V value)
Append
values to key only if the list exists. |
@Nullable V lIndex(K key, long index)
index form list at key.key - must not be null.index - @Nullable Long lLen(K key)
key.key - must not be null.@Nullable V lPop(K key)
key.key - must not be null.@Nullable Long lPush(K key, V value)
value to key.key - must not be null.value - @Nullable Long lPush(K key, V... values)
values to key.key - must not be null.values - @Nullable Long lPush(K key, Collection<V> values)
values to key.key - must not be null.values - must not be null.@Nullable Long lPushx(K key, V value)
values to key only if the list exists.key - must not be null.value - void lSet(K key, long index, V value)
value list element at index.key - must not be null.index - value - @Nullable Long lRem(K key, long count, V value)
count occurrences of value from the list stored at key.key - must not be null.count - value - @Nullable List<V> lRange(K key, long start, long end)
begin and end from list at key.key - must not be null.start - end - void ltrim(K key, long start, long end)
key to elements between start and end.key - must not be null.start - end - @Nullable V rPop(K key)
key.key - must not be null.@Nullable V rPoplPush(K srcKey, K dstKey)
sourceKey, append it to destinationKey and return its value.srcKey - must not be null.dstKey - must not be null.@Nullable V brPoplPush(K srcKey, K dstKey, long timeoutSeconds)
srcKey, append it to dstKey and return its value.timeoutSeconds reached.srcKey - must not be null.dstKey - must not be null.timeoutSeconds - @Nullable Long rPush(K key, V value)
value to key.key - must not be null.value - @Nullable Long rPush(K key, V... values)
values to key.key - must not be null.values - @Nullable Long rPush(K key, Collection<V> values)
values to key.key - must not be null.values - @Nullable Long rPushx(K key, V value)
values to key only if the list exists.key - must not be null.value - @Nullable V blPop(K key, long timeoutSeconds)
key . timeoutSeconds reached.key - must not be null.timeoutSeconds - @Nullable V brPop(K key, long timeoutSeconds)
key. timeoutSeconds reached.key - must not be null.timeoutSeconds - Copyright © 2021. All rights reserved.