public interface ReactiveListCommands
Modifier and Type | Interface and Description |
---|---|
static class |
ReactiveListCommands.BPopCommand |
static class |
ReactiveListCommands.BRPopLPushCommand
BRPOPLPUSH command parameters. |
static class |
ReactiveListCommands.Direction |
static class |
ReactiveListCommands.LIndexCommand
LINDEX command parameters. |
static class |
ReactiveListCommands.LInsertCommand
LINSERT command parameters. |
static class |
ReactiveListCommands.LRemCommand
LREM command parameters. |
static class |
ReactiveListCommands.LSetCommand
LSET command parameters. |
static class |
ReactiveListCommands.PopCommand
LPOP /RPOP command parameters. |
static class |
ReactiveListCommands.PopResponse
|
static class |
ReactiveListCommands.PopResult
|
static class |
ReactiveListCommands.PushCommand
LPUSH /RPUSH command parameters. |
static class |
ReactiveListCommands.RPopLPushCommand
RPOPLPUSH command parameters. |
Modifier and Type | Method and Description |
---|---|
default reactor.core.publisher.Mono<ReactiveListCommands.PopResult> |
blPop(List<ByteBuffer> keys,
Duration timeout)
Removes and returns first element from lists stored at keys.
|
reactor.core.publisher.Flux<ReactiveListCommands.PopResponse> |
bPop(org.reactivestreams.Publisher<ReactiveListCommands.BPopCommand> commands)
Removes and returns the top
ReactiveListCommands.BPopCommand.getDirection() element from lists stored at
ReactiveListCommands.BPopCommand.getKeys() . |
default reactor.core.publisher.Mono<ReactiveListCommands.PopResult> |
brPop(List<ByteBuffer> keys,
Duration timeout)
Removes and returns last element from lists stored at keys.
|
default reactor.core.publisher.Mono<ByteBuffer> |
bRPopLPush(ByteBuffer source,
ByteBuffer destination,
Duration timeout)
Remove the last element from list at source, append it to destination and return its value.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveListCommands.BRPopLPushCommand>> |
bRPopLPush(org.reactivestreams.Publisher<ReactiveListCommands.BRPopLPushCommand> commands)
Remove the last element from list at
ReactiveRedisConnection.KeyCommand.getKey() , append it to
ReactiveListCommands.BRPopLPushCommand.getDestination() and return its value. |
default reactor.core.publisher.Mono<ByteBuffer> |
lIndex(ByteBuffer key,
long index)
Get element at index form list at key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveListCommands.LIndexCommand>> |
lIndex(org.reactivestreams.Publisher<ReactiveListCommands.LIndexCommand> commands)
Get element at
ReactiveListCommands.LIndexCommand.getIndex() form list at ReactiveRedisConnection.KeyCommand.getKey() . |
default reactor.core.publisher.Mono<Long> |
lInsert(ByteBuffer key,
RedisListCommands.Position position,
ByteBuffer pivot,
ByteBuffer value)
Insert value
RedisListCommands.Position.BEFORE or RedisListCommands.Position.AFTER existing pivot for
key. |
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveListCommands.LInsertCommand,Long>> |
lInsert(org.reactivestreams.Publisher<ReactiveListCommands.LInsertCommand> commands)
|
default reactor.core.publisher.Mono<Long> |
lLen(ByteBuffer key)
Get the size of list stored at key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> |
lLen(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Get the size of list stored at
ReactiveRedisConnection.KeyCommand.getKey() |
default reactor.core.publisher.Mono<ByteBuffer> |
lPop(ByteBuffer key)
Removes and returns first element in list stored at key.
|
default reactor.core.publisher.Mono<Long> |
lPush(ByteBuffer key,
List<ByteBuffer> values)
Prepend values to key.
|
default reactor.core.publisher.Mono<Long> |
lPushX(ByteBuffer key,
ByteBuffer value)
Prepend value to key if key already exists.
|
default reactor.core.publisher.Mono<List<ByteBuffer>> |
lRange(ByteBuffer key,
long start,
long end)
Get elements between begin and end from list at key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveRedisConnection.RangeCommand,ByteBuffer>> |
lRange(org.reactivestreams.Publisher<ReactiveRedisConnection.RangeCommand> commands)
Get elements in
ReactiveRedisConnection.RangeCommand.getRange() from list at ReactiveRedisConnection.KeyCommand.getKey() |
default reactor.core.publisher.Mono<Long> |
lRem(ByteBuffer key,
ByteBuffer value)
Removes all occurrences of value from the list stored at key.
|
default reactor.core.publisher.Mono<Long> |
lRem(ByteBuffer key,
Long count,
ByteBuffer value)
Removes the first count occurrences of value from the list stored at key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveListCommands.LRemCommand,Long>> |
lRem(org.reactivestreams.Publisher<ReactiveListCommands.LRemCommand> commands)
Removes the
ReactiveListCommands.LRemCommand.getCount() occurrences of ReactiveListCommands.LRemCommand.getValue() from the list stored at
ReactiveRedisConnection.KeyCommand.getKey() . |
default reactor.core.publisher.Mono<Boolean> |
lSet(ByteBuffer key,
long index,
ByteBuffer value)
Set the value list element at index.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveListCommands.LSetCommand>> |
lSet(org.reactivestreams.Publisher<ReactiveListCommands.LSetCommand> commands)
Set the
ReactiveListCommands.LSetCommand.getValue() list element at ReactiveRedisConnection.KeyCommand.getKey() . |
default reactor.core.publisher.Mono<Boolean> |
lTrim(ByteBuffer key,
long start,
long end)
Trim list at key to elements between begin and end.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveRedisConnection.RangeCommand>> |
lTrim(org.reactivestreams.Publisher<ReactiveRedisConnection.RangeCommand> commands)
Trim list at
ReactiveRedisConnection.KeyCommand.getKey() to elements within ReactiveRedisConnection.RangeCommand.getRange() . |
reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveListCommands.PopCommand>> |
pop(org.reactivestreams.Publisher<ReactiveListCommands.PopCommand> commands)
Removes and returns last element in list stored at
ReactiveRedisConnection.KeyCommand.getKey() |
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveListCommands.PushCommand,Long>> |
push(org.reactivestreams.Publisher<ReactiveListCommands.PushCommand> commands)
|
default reactor.core.publisher.Mono<ByteBuffer> |
rPop(ByteBuffer key)
Removes and returns last element in list stored at key.
|
default reactor.core.publisher.Mono<ByteBuffer> |
rPopLPush(ByteBuffer source,
ByteBuffer destination)
Remove the last element from list at source, append it to destination and return its value.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveListCommands.RPopLPushCommand>> |
rPopLPush(org.reactivestreams.Publisher<ReactiveListCommands.RPopLPushCommand> commands)
Remove the last element from list at
ReactiveRedisConnection.KeyCommand.getKey() , append it to
ReactiveListCommands.RPopLPushCommand.getDestination() and return its value. |
default reactor.core.publisher.Mono<Long> |
rPush(ByteBuffer key,
List<ByteBuffer> values)
Append values to key.
|
default reactor.core.publisher.Mono<Long> |
rPushX(ByteBuffer key,
ByteBuffer value)
Append values to key only if key already exists.
|
default reactor.core.publisher.Mono<Long> rPush(ByteBuffer key, List<ByteBuffer> values)
key
- must not be null.values
- must not be null.default reactor.core.publisher.Mono<Long> rPushX(ByteBuffer key, ByteBuffer value)
key
- must not be null.value
- must not be null.default reactor.core.publisher.Mono<Long> lPush(ByteBuffer key, List<ByteBuffer> values)
key
- must not be null.values
- must not be null.default reactor.core.publisher.Mono<Long> lPushX(ByteBuffer key, ByteBuffer value)
key
- must not be null.value
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveListCommands.PushCommand,Long>> push(org.reactivestreams.Publisher<ReactiveListCommands.PushCommand> commands)
ReactiveListCommands.PushCommand.getValues()
to ReactiveRedisConnection.KeyCommand.getKey()
.commands
- must not be null.default reactor.core.publisher.Mono<Long> lLen(ByteBuffer key)
key
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> lLen(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveRedisConnection.KeyCommand.getKey()
commands
- must not be null.default reactor.core.publisher.Mono<List<ByteBuffer>> lRange(ByteBuffer key, long start, long end)
key
- must not be null.start
- end
- reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveRedisConnection.RangeCommand,ByteBuffer>> lRange(org.reactivestreams.Publisher<ReactiveRedisConnection.RangeCommand> commands)
ReactiveRedisConnection.RangeCommand.getRange()
from list at ReactiveRedisConnection.KeyCommand.getKey()
commands
- must not be null.default reactor.core.publisher.Mono<Boolean> lTrim(ByteBuffer key, long start, long end)
key
- must not be null.start
- end
- reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveRedisConnection.RangeCommand>> lTrim(org.reactivestreams.Publisher<ReactiveRedisConnection.RangeCommand> commands)
ReactiveRedisConnection.KeyCommand.getKey()
to elements within ReactiveRedisConnection.RangeCommand.getRange()
.commands
- must not be null.default reactor.core.publisher.Mono<ByteBuffer> lIndex(ByteBuffer key, long index)
key
- must not be null.index
- reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveListCommands.LIndexCommand>> lIndex(org.reactivestreams.Publisher<ReactiveListCommands.LIndexCommand> commands)
ReactiveListCommands.LIndexCommand.getIndex()
form list at ReactiveRedisConnection.KeyCommand.getKey()
.commands
- must not be null.default reactor.core.publisher.Mono<Long> lInsert(ByteBuffer key, RedisListCommands.Position position, ByteBuffer pivot, ByteBuffer value)
RedisListCommands.Position.BEFORE
or RedisListCommands.Position.AFTER
existing pivot for
key.key
- must not be null.position
- must not be null.pivot
- must not be null.value
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveListCommands.LInsertCommand,Long>> lInsert(org.reactivestreams.Publisher<ReactiveListCommands.LInsertCommand> commands)
ReactiveListCommands.LInsertCommand.getValue()
RedisListCommands.Position.BEFORE
or RedisListCommands.Position.AFTER
existing
ReactiveListCommands.LInsertCommand.getPivot()
for ReactiveRedisConnection.KeyCommand.getKey()
commands
- must not be null.default reactor.core.publisher.Mono<Boolean> lSet(ByteBuffer key, long index, ByteBuffer value)
key
- must not be null.index
- value
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveListCommands.LSetCommand>> lSet(org.reactivestreams.Publisher<ReactiveListCommands.LSetCommand> commands)
ReactiveListCommands.LSetCommand.getValue()
list element at ReactiveRedisConnection.KeyCommand.getKey()
.commands
- default reactor.core.publisher.Mono<Long> lRem(ByteBuffer key, ByteBuffer value)
key
- must not be null.value
- must not be null.default reactor.core.publisher.Mono<Long> lRem(ByteBuffer key, Long count, ByteBuffer value)
key
- must not be null.count
- must not be null.value
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveListCommands.LRemCommand,Long>> lRem(org.reactivestreams.Publisher<ReactiveListCommands.LRemCommand> commands)
ReactiveListCommands.LRemCommand.getCount()
occurrences of ReactiveListCommands.LRemCommand.getValue()
from the list stored at
ReactiveRedisConnection.KeyCommand.getKey()
.commands
- must not be null.default reactor.core.publisher.Mono<ByteBuffer> lPop(ByteBuffer key)
key
- must not be null.default reactor.core.publisher.Mono<ByteBuffer> rPop(ByteBuffer key)
key
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveListCommands.PopCommand>> pop(org.reactivestreams.Publisher<ReactiveListCommands.PopCommand> commands)
ReactiveRedisConnection.KeyCommand.getKey()
commands
- must not be null.default reactor.core.publisher.Mono<ReactiveListCommands.PopResult> blPop(List<ByteBuffer> keys, Duration timeout)
keys
- must not be null.timeout
- must not be null.default reactor.core.publisher.Mono<ReactiveListCommands.PopResult> brPop(List<ByteBuffer> keys, Duration timeout)
keys
- must not be null.timeout
- must not be null.reactor.core.publisher.Flux<ReactiveListCommands.PopResponse> bPop(org.reactivestreams.Publisher<ReactiveListCommands.BPopCommand> commands)
ReactiveListCommands.BPopCommand.getDirection()
element from lists stored at
ReactiveListCommands.BPopCommand.getKeys()
.ReactiveListCommands.BPopCommand.getTimeout()
reached.commands
- default reactor.core.publisher.Mono<ByteBuffer> rPopLPush(ByteBuffer source, ByteBuffer destination)
source
- must not be null.destination
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveListCommands.RPopLPushCommand>> rPopLPush(org.reactivestreams.Publisher<ReactiveListCommands.RPopLPushCommand> commands)
ReactiveRedisConnection.KeyCommand.getKey()
, append it to
ReactiveListCommands.RPopLPushCommand.getDestination()
and return its value.commands
- must not be null.default reactor.core.publisher.Mono<ByteBuffer> bRPopLPush(ByteBuffer source, ByteBuffer destination, Duration timeout)
source
- must not be null.destination
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveListCommands.BRPopLPushCommand>> bRPopLPush(org.reactivestreams.Publisher<ReactiveListCommands.BRPopLPushCommand> commands)
ReactiveRedisConnection.KeyCommand.getKey()
, append it to
ReactiveListCommands.BRPopLPushCommand.getDestination()
and return its value. ReactiveListCommands.BRPopLPushCommand.getTimeout()
reached.commands
- must not be null.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.