public class LettuceReactiveStringCommands extends Object implements ReactiveStringCommands
ReactiveStringCommands.AppendCommand, ReactiveStringCommands.BitCountCommand, ReactiveStringCommands.BitOpCommand, ReactiveStringCommands.GetBitCommand, ReactiveStringCommands.MSetCommand, ReactiveStringCommands.SetBitCommand, ReactiveStringCommands.SetCommand, ReactiveStringCommands.SetRangeCommand
Constructor and Description |
---|
LettuceReactiveStringCommands(LettuceReactiveRedisConnection connection)
Create new
LettuceReactiveStringCommands . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.AppendCommand,Long>> |
append(org.reactivestreams.Publisher<ReactiveStringCommands.AppendCommand> commands)
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.BitCountCommand,Long>> |
bitCount(org.reactivestreams.Publisher<ReactiveStringCommands.BitCountCommand> commands)
Count the number of set bits (population counting) of value stored at key between begin and
end.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.BitOpCommand,Long>> |
bitOp(org.reactivestreams.Publisher<ReactiveStringCommands.BitOpCommand> commands)
Perform bitwise operations between strings.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveRedisConnection.KeyCommand>> |
get(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Get elements one by one.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.GetBitCommand>> |
getBit(org.reactivestreams.Publisher<ReactiveStringCommands.GetBitCommand> commands)
Get the bit value at offset of value at key.
|
protected LettuceReactiveRedisConnection |
getConnection() |
reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveRedisConnection.RangeCommand>> |
getRange(org.reactivestreams.Publisher<ReactiveRedisConnection.RangeCommand> commands)
Get a substring of value of key between begin and end.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveStringCommands.SetCommand>> |
getSet(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Set value for key and return the existing value one by one.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<List<ByteBuffer>,ByteBuffer>> |
mGet(org.reactivestreams.Publisher<List<ByteBuffer>> keyCollections)
Get multiple values at for keysets in batches.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.MSetCommand>> |
mSet(org.reactivestreams.Publisher<ReactiveStringCommands.MSetCommand> commands)
Set multiple keys to multiple values using key-value pairs provided in commands.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.MSetCommand>> |
mSetNX(org.reactivestreams.Publisher<ReactiveStringCommands.MSetCommand> commands)
Set multiple keys to multiple values using key-value pairs provided in tuples only if the provided key
does not exist.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> |
pSetEX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Set key value pairs and
Expiration . |
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> |
set(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Set each and every item separately by invoking
ReactiveStringCommands.SetCommand . |
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetBitCommand>> |
setBit(org.reactivestreams.Publisher<ReactiveStringCommands.SetBitCommand> commands)
Sets the bit at offset in value stored at key and return the original value.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> |
setEX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Set key value pairs and
Expiration . |
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> |
setNX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Set key value pairs, only if key does not exist.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.SetRangeCommand,Long>> |
setRange(org.reactivestreams.Publisher<ReactiveStringCommands.SetRangeCommand> commands)
Overwrite parts of
ReactiveRedisConnection.KeyCommand.key starting at the specified offset with given
ReactiveStringCommands.SetRangeCommand.value . |
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> |
strLen(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
Get the length of the value stored at key.
|
public LettuceReactiveStringCommands(LettuceReactiveRedisConnection connection)
LettuceReactiveStringCommands
.connection
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<List<ByteBuffer>,ByteBuffer>> mGet(org.reactivestreams.Publisher<List<ByteBuffer>> keyCollections)
ReactiveStringCommands
mGet
in interface ReactiveStringCommands
keyCollections
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> set(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
ReactiveStringCommands
ReactiveStringCommands.SetCommand
.set
in interface ReactiveStringCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.BooleanResponse
holding the ReactiveStringCommands.SetCommand
along with the command result.public reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveStringCommands.SetCommand>> getSet(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
ReactiveStringCommands
getSet
in interface ReactiveStringCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.ByteBufferResponse
holding the ReactiveStringCommands.SetCommand
along with the previously
existing value.public reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveRedisConnection.KeyCommand>> get(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveStringCommands
get
in interface ReactiveStringCommands
commands
- must not be null.Flux
of ReactiveRedisConnection.ByteBufferResponse
holding the key to get along with the value
retrieved.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> setNX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
ReactiveStringCommands
setNX
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> setEX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
ReactiveStringCommands
Expiration
.setEX
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> pSetEX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
ReactiveStringCommands
Expiration
.pSetEX
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.MSetCommand>> mSet(org.reactivestreams.Publisher<ReactiveStringCommands.MSetCommand> commands)
ReactiveStringCommands
mSet
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.MSetCommand>> mSetNX(org.reactivestreams.Publisher<ReactiveStringCommands.MSetCommand> commands)
ReactiveStringCommands
mSetNX
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.AppendCommand,Long>> append(org.reactivestreams.Publisher<ReactiveStringCommands.AppendCommand> commands)
ReactiveStringCommands
ReactiveStringCommands.AppendCommand.getValue()
to the ReactiveRedisConnection.KeyCommand.getKey()
.append
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveRedisConnection.RangeCommand>> getRange(org.reactivestreams.Publisher<ReactiveRedisConnection.RangeCommand> commands)
ReactiveStringCommands
getRange
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.SetRangeCommand,Long>> setRange(org.reactivestreams.Publisher<ReactiveStringCommands.SetRangeCommand> commands)
ReactiveStringCommands
ReactiveRedisConnection.KeyCommand.key
starting at the specified offset with given
ReactiveStringCommands.SetRangeCommand.value
.setRange
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.GetBitCommand>> getBit(org.reactivestreams.Publisher<ReactiveStringCommands.GetBitCommand> commands)
ReactiveStringCommands
getBit
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetBitCommand>> setBit(org.reactivestreams.Publisher<ReactiveStringCommands.SetBitCommand> commands)
ReactiveStringCommands
setBit
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.BitCountCommand,Long>> bitCount(org.reactivestreams.Publisher<ReactiveStringCommands.BitCountCommand> commands)
ReactiveStringCommands
bitCount
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.BitOpCommand,Long>> bitOp(org.reactivestreams.Publisher<ReactiveStringCommands.BitOpCommand> commands)
ReactiveStringCommands
bitOp
in interface ReactiveStringCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> strLen(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveStringCommands
strLen
in interface ReactiveStringCommands
commands
- must not be null.protected LettuceReactiveRedisConnection getConnection()
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.