public class LettuceReactiveKeyCommands extends Object implements ReactiveKeyCommands
ReactiveKeyCommands.ExpireAtCommand, ReactiveKeyCommands.ExpireCommand, ReactiveKeyCommands.MoveCommand, 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.BooleanResponse<ReactiveKeyCommands.ExpireCommand>> |
expire(org.reactivestreams.Publisher<ReactiveKeyCommands.ExpireCommand> commands)
Expire keys one by one.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.ExpireAtCommand>> |
expireAt(org.reactivestreams.Publisher<ReactiveKeyCommands.ExpireAtCommand> commands)
Set one-by-one the expiration for given
key as a UNIX timestamp. |
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.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.MoveCommand>> |
move(org.reactivestreams.Publisher<ReactiveKeyCommands.MoveCommand> commands)
Move keys one-by-one between databases.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveRedisConnection.KeyCommand>> |
persist(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Remove one-by-one the expiration from given
key . |
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.ExpireCommand>> |
pExpire(org.reactivestreams.Publisher<ReactiveKeyCommands.ExpireCommand> commands)
Expire keys one by one.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.ExpireAtCommand>> |
pExpireAt(org.reactivestreams.Publisher<ReactiveKeyCommands.ExpireAtCommand> commands)
Set one-by-one the expiration for given
key as a UNIX timestamp in milliseconds. |
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> |
pTtl(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Get one-by-one the time to live for keys.
|
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)
Rename key oleName to newName.
|
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.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> |
ttl(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Get one-by-one the time to live for keys.
|
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.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)
ReactiveKeyCommands
rename
in interface ReactiveKeyCommands
commands
- must not be null.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.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.BooleanResponse<ReactiveKeyCommands.ExpireCommand>> expire(org.reactivestreams.Publisher<ReactiveKeyCommands.ExpireCommand> commands)
ReactiveKeyCommands
expire
in interface ReactiveKeyCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.BooleanResponse
holding the key removed along with the expiration
result.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.ExpireCommand>> pExpire(org.reactivestreams.Publisher<ReactiveKeyCommands.ExpireCommand> commands)
ReactiveKeyCommands
pExpire
in interface ReactiveKeyCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.BooleanResponse
holding the key removed along with the expiration
result.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.ExpireAtCommand>> expireAt(org.reactivestreams.Publisher<ReactiveKeyCommands.ExpireAtCommand> commands)
ReactiveKeyCommands
key
as a UNIX timestamp.expireAt
in interface ReactiveKeyCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.BooleanResponse
holding the key removed along with the expiration
result.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.ExpireAtCommand>> pExpireAt(org.reactivestreams.Publisher<ReactiveKeyCommands.ExpireAtCommand> commands)
ReactiveKeyCommands
key
as a UNIX timestamp in milliseconds.pExpireAt
in interface ReactiveKeyCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.BooleanResponse
holding the key removed along with the expiration
result.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveRedisConnection.KeyCommand>> persist(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveKeyCommands
key
.persist
in interface ReactiveKeyCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.BooleanResponse
holding the key persisted along with the persist result.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> ttl(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveKeyCommands
ttl
in interface ReactiveKeyCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.NumericResponse
holding the key along with the time to live result.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> pTtl(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveKeyCommands
pTtl
in interface ReactiveKeyCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.NumericResponse
holding the key along with the time to live result.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveKeyCommands.MoveCommand>> move(org.reactivestreams.Publisher<ReactiveKeyCommands.MoveCommand> commands)
ReactiveKeyCommands
move
in interface ReactiveKeyCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.BooleanResponse
holding the key to move along with the move result.Copyright © 2011-2016–2017 Pivotal Software, Inc.. All rights reserved.