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)
ReactiveKeyCommands
exists
in interface ReactiveKeyCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,DataType>> type(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveKeyCommands
type
in interface ReactiveKeyCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> del(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveKeyCommands
del
in interface ReactiveKeyCommands
commands
- 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)
ReactiveKeyCommands
mDel
in interface ReactiveKeyCommands
keysCollection
- 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)
ReactiveKeyCommands
keys
in interface ReactiveKeyCommands
patterns
- must not be null.public reactor.core.publisher.Mono<ByteBuffer> randomKey()
ReactiveKeyCommands
randomKey
in interface ReactiveKeyCommands
public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> rename(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> commands)
rename
in interface ReactiveKeyCommands
public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> renameNX(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> commands)
ReactiveKeyCommands
renameNX
in interface ReactiveKeyCommands
commands
- must not be null.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.