public class LettuceReactiveClusterKeyCommands extends LettuceReactiveKeyCommands implements ReactiveClusterKeyCommands
ReactiveKeyCommands.RenameCommand
Constructor and Description |
---|
LettuceReactiveClusterKeyCommands(LettuceReactiveRedisClusterConnection connection)
Create new
LettuceReactiveKeyCommands . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<List<ByteBuffer>> |
keys(RedisClusterNode node,
ByteBuffer pattern)
Retrieve all keys for a given pattern from
RedisNode . |
reactor.core.publisher.Mono<ByteBuffer> |
randomKey(RedisClusterNode node)
Retrieve a random key from
RedisNode . |
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.
|
del, exists, keys, mDel, randomKey, type
public LettuceReactiveClusterKeyCommands(LettuceReactiveRedisClusterConnection connection)
LettuceReactiveKeyCommands
.connection
- must not be null.public reactor.core.publisher.Mono<List<ByteBuffer>> keys(RedisClusterNode node, ByteBuffer pattern)
ReactiveClusterKeyCommands
RedisNode
.keys
in interface ReactiveClusterKeyCommands
node
- must not be null.pattern
- must not be null.public reactor.core.publisher.Mono<ByteBuffer> randomKey(RedisClusterNode node)
ReactiveClusterKeyCommands
RedisNode
.randomKey
in interface ReactiveClusterKeyCommands
node
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> rename(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> commands)
rename
in interface ReactiveKeyCommands
rename
in class LettuceReactiveKeyCommands
public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.RenameCommand>> renameNX(org.reactivestreams.Publisher<ReactiveKeyCommands.RenameCommand> commands)
ReactiveKeyCommands
renameNX
in interface ReactiveKeyCommands
renameNX
in class LettuceReactiveKeyCommands
commands
- must not be null.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.