public class LettuceReactiveKeyCommands extends Object implements ReactiveKeyCommands
ReactiveKeyCommands.RenameCommand| Constructor and Description |
|---|
LettuceReactiveKeyCommands(LettuceReactiveRedisConnection connection)
Create new
LettuceReactiveKeyCommands. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> |
del(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Delete keys one by one.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveRedisConnection.KeyCommand>> |
exists(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Determine if given key exists.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ByteBuffer,ByteBuffer>> |
keys(org.reactivestreams.Publisher<ByteBuffer> patterns)
Find all keys matching the given pattern.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<List<ByteBuffer>,Long>> |
mDel(org.reactivestreams.Publisher<List<ByteBuffer>> keysCollection)
Delete multiple keys in batches.
|
reactor.core.publisher.Mono<ByteBuffer> |
randomKey()
Return a random key from the keyspace.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> |
rename(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> commands) |
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> |
renameNX(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> commands)
Rename key oleName to newName only if newName does not exist.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,DataType>> |
type(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Determine the type stored at key.
|
public LettuceReactiveKeyCommands(LettuceReactiveRedisConnection connection)
LettuceReactiveKeyCommands.connection - must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveRedisConnection.KeyCommand>> exists(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveKeyCommandsexists in interface ReactiveKeyCommandscommands - must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,DataType>> type(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveKeyCommandstype in interface ReactiveKeyCommandscommands - must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> del(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveKeyCommandsdel in interface ReactiveKeyCommandscommands - must not be null.Flux of ReactiveRedisConnection.NumericResponse holding the key removed along with the deletion result.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<List<ByteBuffer>,Long>> mDel(org.reactivestreams.Publisher<List<ByteBuffer>> keysCollection)
ReactiveKeyCommandsmDel in interface ReactiveKeyCommandskeysCollection - must not be null.Flux of ReactiveRedisConnection.NumericResponse holding the keys removed along with the deletion result.public reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ByteBuffer,ByteBuffer>> keys(org.reactivestreams.Publisher<ByteBuffer> patterns)
ReactiveKeyCommandskeys in interface ReactiveKeyCommandspatterns - must not be null.public reactor.core.publisher.Mono<ByteBuffer> randomKey()
ReactiveKeyCommandsrandomKey in interface ReactiveKeyCommandspublic reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> rename(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> commands)
rename in interface ReactiveKeyCommandspublic reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> renameNX(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> commands)
ReactiveKeyCommandsrenameNX in interface ReactiveKeyCommandscommands - must not be null.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.