K - Key type.V - Value type.public interface RedisListReactiveCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
Mono<KeyValue<K,V>> |
blpop(long timeout,
K... keys)
Remove and get the first element in a list, or block until one is available.
|
Mono<KeyValue<K,V>> |
brpop(long timeout,
K... keys)
Remove and get the last element in a list, or block until one is available.
|
Mono<V> |
brpoplpush(long timeout,
K source,
K destination)
Pop a value from a list, push it to another list and return it; or block until one is available.
|
Mono<V> |
lindex(K key,
long index)
Get an element from a list by its index.
|
Mono<Long> |
linsert(K key,
boolean before,
V pivot,
V value)
Insert an element before or after another element in a list.
|
Mono<Long> |
llen(K key)
Get the length of a list.
|
Mono<V> |
lpop(K key)
Remove and get the first element in a list.
|
Mono<Long> |
lpush(K key,
V... values)
Prepend one or multiple values to a list.
|
Mono<Long> |
lpushx(K key,
V... values)
Prepend values to a list, only if the list exists.
|
Flux<V> |
lrange(K key,
long start,
long stop)
Get a range of elements from a list.
|
Mono<Long> |
lrange(ValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Get a range of elements from a list.
|
Mono<Long> |
lrem(K key,
long count,
V value)
Remove elements from a list.
|
Mono<String> |
lset(K key,
long index,
V value)
Set the value of an element in a list by its index.
|
Mono<String> |
ltrim(K key,
long start,
long stop)
Trim a list to the specified range.
|
Mono<V> |
rpop(K key)
Remove and get the last element in a list.
|
Mono<V> |
rpoplpush(K source,
K destination)
Remove the last element in a list, append it to another list and return it.
|
Mono<Long> |
rpush(K key,
V... values)
Append one or multiple values to a list.
|
Mono<Long> |
rpushx(K key,
V... values)
Append values to a list, only if the list exists.
|
Mono<KeyValue<K,V>> blpop(long timeout, K... keys)
timeout - the timeout in secondskeys - the keysMono<KeyValue<K,V>> brpop(long timeout, K... keys)
timeout - the timeout in secondskeys - the keysMono<V> brpoplpush(long timeout, K source, K destination)
timeout - the timeout in secondssource - the source keydestination - the destination type: keysource and pushed to destination. If
timeout is reached, aMono<V> lindex(K key, long index)
key - the keyindex - the index type: longindex is out of range.Mono<Long> linsert(K key, boolean before, V pivot, V value)
key - the keybefore - the beforepivot - the pivotvalue - the value-1 when the value pivot
was not found.Mono<Long> llen(K key)
key - the keykey.Mono<V> lpop(K key)
key - the keykey does not exist.Mono<Long> lpush(K key, V... values)
key - the keyvalues - the valueMono<Long> lpushx(K key, V... values)
key - the keyvalues - the valuesFlux<V> lrange(K key, long start, long stop)
key - the keystart - the start type: longstop - the stop type: longMono<Long> lrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
channel - the channelkey - the keystart - the start type: longstop - the stop type: longMono<Long> lrem(K key, long count, V value)
key - the keycount - the count type: longvalue - the valueMono<String> lset(K key, long index, V value)
key - the keyindex - the index type: longvalue - the valueMono<String> ltrim(K key, long start, long stop)
key - the keystart - the start type: longstop - the stop type: longMono<V> rpop(K key)
key - the keykey does not exist.Mono<V> rpoplpush(K source, K destination)
source - the source keydestination - the destination type: keyMono<Long> rpush(K key, V... values)
key - the keyvalues - the valueCopyright © 2019 lettuce.io. All rights reserved.