K - Key type.V - Value type.public interface NodeSelectionListAsyncCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
AsyncExecutions<V> |
blmove(K source,
K destination,
LMoveArgs args,
double timeout)
Atomically returns and removes the first/last element (head/tail depending on the where from argument) of the list stored
at source, and pushes the element at the first/last element (head/tail depending on the whereto argument) of the list
stored at destination.
|
AsyncExecutions<V> |
blmove(K source,
K destination,
LMoveArgs args,
long timeout)
Atomically returns and removes the first/last element (head/tail depending on the where from argument) of the list stored
at source, and pushes the element at the first/last element (head/tail depending on the whereto argument) of the list
stored at destination.
|
AsyncExecutions<List<V>> |
blmovem(K source,
K destination,
BLMovemArgs args)
Atomically returns and removes one or more elements from the head/tail of the list stored at
source, and pushes
them to the head/tail of the list stored at destination. |
AsyncExecutions<KeyValue<K,List<V>>> |
blmpop(double timeout,
LMPopArgs args,
K... keys)
Remove and get the first/last elements in a list, or block until one is available.
|
AsyncExecutions<KeyValue<K,List<V>>> |
blmpop(long timeout,
LMPopArgs args,
K... keys)
Remove and get the first/last elements in a list, or block until one is available.
|
AsyncExecutions<KeyValue<K,V>> |
blpop(double timeout,
K... keys)
Remove and get the first element in a list, or block until one is available.
|
AsyncExecutions<KeyValue<K,V>> |
blpop(long timeout,
K... keys)
Remove and get the first element in a list, or block until one is available.
|
AsyncExecutions<KeyValue<K,V>> |
brpop(double timeout,
K... keys)
Remove and get the last element in a list, or block until one is available.
|
AsyncExecutions<KeyValue<K,V>> |
brpop(long timeout,
K... keys)
Remove and get the last element in a list, or block until one is available.
|
AsyncExecutions<V> |
brpoplpush(double timeout,
K source,
K destination)
Deprecated.
since 7.7, use
blmove(Object, Object, LMoveArgs, double) instead. This command is deprecated by
Redis since version 6.2.0. |
AsyncExecutions<V> |
brpoplpush(long timeout,
K source,
K destination)
Deprecated.
since 7.7, use
blmove(Object, Object, LMoveArgs, long) instead. This command is deprecated by Redis
since version 6.2.0. |
AsyncExecutions<V> |
lindex(K key,
long index)
Get an element from a list by its index.
|
AsyncExecutions<Long> |
linsert(K key,
boolean before,
V pivot,
V value)
Insert an element before or after another element in a list.
|
AsyncExecutions<Long> |
llen(K key)
Get the length of a list.
|
AsyncExecutions<V> |
lmove(K source,
K destination,
LMoveArgs args)
Atomically returns and removes the first/last element (head/tail depending on the where from argument) of the list stored
at source, and pushes the element at the first/last element (head/tail depending on the whereto argument) of the list
stored at destination.
|
AsyncExecutions<List<V>> |
lmovem(K source,
K destination,
LMovemArgs args)
Atomically returns and removes one or more elements from the head/tail of the list stored at
source, and pushes
them to the head/tail of the list stored at destination. |
AsyncExecutions<KeyValue<K,List<V>>> |
lmpop(LMPopArgs args,
K... keys)
Remove and get the first/last elements in a list.
|
AsyncExecutions<V> |
lpop(K key)
Remove and get the first element in a list.
|
AsyncExecutions<List<V>> |
lpop(K key,
long count)
Remove and get the first
count elements in a list. |
AsyncExecutions<Long> |
lpos(K key,
V value)
Return the index of matching elements inside a Redis list.
|
AsyncExecutions<List<Long>> |
lpos(K key,
V value,
int count)
Return the index of matching elements inside a Redis list using the
COUNT option. |
AsyncExecutions<List<Long>> |
lpos(K key,
V value,
int count,
LPosArgs args)
Return the index of matching elements inside a Redis list using the
COUNT option. |
AsyncExecutions<Long> |
lpos(K key,
V value,
LPosArgs args)
Return the index of matching elements inside a Redis list.
|
AsyncExecutions<Long> |
lpush(K key,
V... values)
Prepend one or multiple values to a list.
|
AsyncExecutions<Long> |
lpushx(K key,
V... values)
Prepend values to a list, only if the list exists.
|
AsyncExecutions<List<V>> |
lrange(K key,
long start,
long stop)
Get a range of elements from a list.
|
AsyncExecutions<Long> |
lrange(ValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Get a range of elements from a list.
|
AsyncExecutions<Long> |
lrem(K key,
long count,
V value)
Remove elements from a list.
|
AsyncExecutions<String> |
lset(K key,
long index,
V value)
Set the value of an element in a list by its index.
|
AsyncExecutions<String> |
ltrim(K key,
long start,
long stop)
Trim a list to the specified range.
|
AsyncExecutions<V> |
rpop(K key)
Remove and get the last element in a list.
|
AsyncExecutions<List<V>> |
rpop(K key,
long count)
Remove and get the last
count elements in a list. |
AsyncExecutions<V> |
rpoplpush(K source,
K destination)
Deprecated.
since 7.7, use
lmove(Object, Object, LMoveArgs) instead. This command is deprecated by Redis since
version 6.2.0. |
AsyncExecutions<Long> |
rpush(K key,
V... values)
Append one or multiple values to a list.
|
AsyncExecutions<Long> |
rpushx(K key,
V... values)
Append values to a list, only if the list exists.
|
AsyncExecutions<V> blmove(K source, K destination, LMoveArgs args, long timeout)
source - the source key.destination - the destination type: key.args - command arguments to configure source and destination directions.timeout - the timeout in seconds.AsyncExecutions<V> blmove(K source, K destination, LMoveArgs args, double timeout)
source - the source key.destination - the destination type: key.args - command arguments to configure source and destination directions.timeout - the timeout in seconds.AsyncExecutions<List<V>> blmovem(K source, K destination, BLMovemArgs args)
source, and pushes
them to the head/tail of the list stored at destination. This is the blocking variant of
lmovem(Object, Object, LMovemArgs). When args carry a COUNT the connection blocks only while
source is empty; with EXACTLY it blocks until source holds enough elements or the configured
timeout is reached. Without a count block this is equivalent to blmove(Object, Object, LMoveArgs, long). The
blocking timeout is carried by args via BLMovemArgs.timeout(long) / BLMovemArgs.timeout(double)
and defaults to 0 (block indefinitely).source - the source key.destination - the destination key.args - command arguments to configure source and destination directions, the blocking timeout, and the optional
count block.EXACTLY cannot be satisfied.AsyncExecutions<KeyValue<K,List<V>>> blmpop(long timeout, LMPopArgs args, K... keys)
timeout - the timeout in seconds.args - the additional command arguments.keys - the keys.null when key does not exist or the timeout was
exceeded.AsyncExecutions<KeyValue<K,List<V>>> blmpop(double timeout, LMPopArgs args, K... keys)
timeout - the timeout in seconds.args - the additional command arguments.keys - the keys.null when key does not exist or the timeout was
exceeded.AsyncExecutions<KeyValue<K,V>> blpop(long timeout, K... keys)
timeout - the timeout in seconds.keys - the keys.null multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with
the first element being the name of the key where an element was popped and the second element being the value of
the popped element.AsyncExecutions<KeyValue<K,V>> blpop(double timeout, K... keys)
timeout - the timeout in seconds.keys - the keys.null multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with
the first element being the name of the key where an element was popped and the second element being the value of
the popped element.AsyncExecutions<KeyValue<K,V>> brpop(long timeout, K... keys)
timeout - the timeout in seconds.keys - the keys.null multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with
the first element being the name of the key where an element was popped and the second element being the value of
the popped element.AsyncExecutions<KeyValue<K,V>> brpop(double timeout, K... keys)
timeout - the timeout in seconds.keys - the keys.null multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with
the first element being the name of the key where an element was popped and the second element being the value of
the popped element.@Deprecated AsyncExecutions<V> brpoplpush(long timeout, K source, K destination)
blmove(Object, Object, LMoveArgs, long) instead. This command is deprecated by Redis
since version 6.2.0.timeout - the timeout in seconds.source - the source key.destination - the destination type: key.source and pushed to destination. If
timeout is reached, a.@Deprecated AsyncExecutions<V> brpoplpush(double timeout, K source, K destination)
blmove(Object, Object, LMoveArgs, double) instead. This command is deprecated by
Redis since version 6.2.0.timeout - the timeout in seconds.source - the source key.destination - the destination type: key.source and pushed to destination. If
timeout is reached, a.AsyncExecutions<V> lindex(K key, long index)
key - the key.index - the index type: long.null when index is out of range.AsyncExecutions<Long> linsert(K key, boolean before, V pivot, V value)
key - the key.before - the before.pivot - the pivot.value - the value.-1 when the value pivot
was not found.AsyncExecutions<Long> llen(K key)
key - the key.key.AsyncExecutions<V> lmove(K source, K destination, LMoveArgs args)
source - the source key.destination - the destination type: key.args - command arguments to configure source and destination directions.AsyncExecutions<List<V>> lmovem(K source, K destination, LMovemArgs args)
source, and pushes
them to the head/tail of the list stored at destination. The number of elements and their ordering are configured
through args: COUNT moves up-to count elements, EXACTLY moves exactly count
elements or returns an empty list when source does not hold enough elements. Without a count block this is
equivalent to lmove(Object, Object, LMoveArgs).source - the source key.destination - the destination key.args - command arguments to configure source and destination directions and the optional count block.EXACTLY cannot be
satisfied.AsyncExecutions<KeyValue<K,List<V>>> lmpop(LMPopArgs args, K... keys)
args - the additional command arguments.keys - the keys.null when key does not exist.AsyncExecutions<V> lpop(K key)
key - the key.null when key does not exist.AsyncExecutions<List<V>> lpop(K key, long count)
count elements in a list.key - the key.count - the number of elements to return.count elements, or null when key does
not exist.AsyncExecutions<Long> lpos(K key, V value)
null is returned. The returned elements indexes are
always referring to what lindex(java.lang.Object, long) would return. So first element from head is 0,
and so forth.key - the key.value - the element to search for.AsyncExecutions<Long> lpos(K key, V value, LPosArgs args)
null is returned. The returned elements indexes are
always referring to what lindex(java.lang.Object, long) would return. So first element from head is 0,
and so forth.key - the key.value - the element to search for.args - command arguments to configureFIRST and MAXLEN options.AsyncExecutions<List<Long>> lpos(K key, V value, int count)
COUNT option. By default, when no options are
given, it will scan the list from head to tail, looking for the first match of "element". The returned elements indexes
are always referring to what lindex(java.lang.Object, long) would return. So first element from head is
0, and so forth.key - the key.value - the element to search for.count - limit the number of matches.AsyncExecutions<List<Long>> lpos(K key, V value, int count, LPosArgs args)
COUNT option. By default, when no options are
given, it will scan the list from head to tail, looking for the first match of "element". The returned elements indexes
are always referring to what lindex(java.lang.Object, long) would return. So first element from head is
0, and so forth.key - the key.value - the element to search for.count - limit the number of matches.args - command arguments to configureFIRST and MAXLEN options.AsyncExecutions<Long> lpush(K key, V... values)
key - the key.values - the value.AsyncExecutions<Long> lpushx(K key, V... values)
key - the key.values - the values.AsyncExecutions<List<V>> lrange(K key, long start, long stop)
key - the key.start - the start type: long.stop - the stop type: long.AsyncExecutions<Long> lrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
channel - the channel.key - the key.start - the start type: long.stop - the stop type: long.AsyncExecutions<Long> lrem(K key, long count, V value)
key - the key.count - the count type: long.value - the value.AsyncExecutions<String> lset(K key, long index, V value)
key - the key.index - the index type: long.value - the value.AsyncExecutions<String> ltrim(K key, long start, long stop)
key - the key.start - the start type: long.stop - the stop type: long.AsyncExecutions<V> rpop(K key)
key - the key.null when key does not exist.AsyncExecutions<List<V>> rpop(K key, long count)
count elements in a list.key - the key.count - the number of elements to return.count elements, or null when key does not
exist.@Deprecated AsyncExecutions<V> rpoplpush(K source, K destination)
lmove(Object, Object, LMoveArgs) instead. This command is deprecated by Redis since
version 6.2.0.source - the source key.destination - the destination type: key.AsyncExecutions<Long> rpush(K key, V... values)
key - the key.values - the value.AsyncExecutions<Long> rpushx(K key, V... values)
key - the key.values - the values.Copyright © 2026 lettuce.io. All rights reserved.