public interface ReactiveKeyCommands
Modifier and Type | Interface and Description |
---|---|
static class |
ReactiveKeyCommands.RenameCommand
RENAME command parameters. |
Modifier and Type | Method and Description |
---|---|
default reactor.core.publisher.Mono<Long> |
del(ByteBuffer key)
Delete key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> |
del(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
Delete keys one by one.
|
default reactor.core.publisher.Mono<Boolean> |
exists(ByteBuffer key)
Determine if given key exists.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveRedisConnection.KeyCommand>> |
exists(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
Determine if given key exists.
|
default reactor.core.publisher.Mono<List<ByteBuffer>> |
keys(ByteBuffer pattern)
Find all keys matching the given pattern.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ByteBuffer,ByteBuffer>> |
keys(org.reactivestreams.Publisher<ByteBuffer> patterns)
Find all keys matching the given pattern.
|
default reactor.core.publisher.Mono<Long> |
mDel(List<ByteBuffer> keys)
Delete multiple keys one in one batch.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<List<ByteBuffer>,Long>> |
mDel(org.reactivestreams.Publisher<List<ByteBuffer>> keys)
Delete multiple keys in batches.
|
reactor.core.publisher.Mono<ByteBuffer> |
randomKey()
Return a random key from the keyspace.
|
default reactor.core.publisher.Mono<Boolean> |
rename(ByteBuffer key,
ByteBuffer newName)
Rename key oleName to newName.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> |
rename(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> cmd) |
default reactor.core.publisher.Mono<Boolean> |
renameNX(ByteBuffer key,
ByteBuffer newName)
Rename key oleName to newName only if newName does not exist.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> |
renameNX(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> command)
Rename key oleName to newName only if newName does not exist.
|
default reactor.core.publisher.Mono<DataType> |
type(ByteBuffer key)
Determine the type stored at key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,DataType>> |
type(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
Determine the type stored at key.
|
default reactor.core.publisher.Mono<Boolean> exists(ByteBuffer key)
key
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveRedisConnection.KeyCommand>> exists(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
keys
- must not be null.default reactor.core.publisher.Mono<DataType> type(ByteBuffer key)
key
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,DataType>> type(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
keys
- must not be null.default reactor.core.publisher.Mono<List<ByteBuffer>> keys(ByteBuffer pattern)
pattern
- must not be null.reactor.core.publisher.Mono<ByteBuffer> randomKey()
reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ByteBuffer,ByteBuffer>> keys(org.reactivestreams.Publisher<ByteBuffer> patterns)
patterns
- must not be null.default reactor.core.publisher.Mono<Boolean> rename(ByteBuffer key, ByteBuffer newName)
key
- must not be null.newName
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> rename(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> cmd)
default reactor.core.publisher.Mono<Boolean> renameNX(ByteBuffer key, ByteBuffer newName)
key
- must not be null.newName
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> renameNX(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> command)
command
- must not be null.default reactor.core.publisher.Mono<Long> del(ByteBuffer key)
key
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> del(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
keys
- must not be null.Flux
of ReactiveRedisConnection.NumericResponse
holding the key removed along with the deletion result.default reactor.core.publisher.Mono<Long> mDel(List<ByteBuffer> keys)
keys
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<List<ByteBuffer>,Long>> mDel(org.reactivestreams.Publisher<List<ByteBuffer>> keys)
keys
- must not be null.Flux
of ReactiveRedisConnection.NumericResponse
holding the keys removed along with the deletion result.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.