public interface ReactiveStringCommands
Modifier and Type | Interface and Description |
---|---|
static class |
ReactiveStringCommands.AppendCommand
APPEND command parameters. |
static class |
ReactiveStringCommands.BitCountCommand
BITCOUNT command parameters. |
static class |
ReactiveStringCommands.BitOpCommand
BITOP command parameters. |
static class |
ReactiveStringCommands.GetBitCommand
GETBIT command parameters. |
static class |
ReactiveStringCommands.MSetCommand
MSET command parameters. |
static class |
ReactiveStringCommands.SetBitCommand
SETBIT command parameters. |
static class |
ReactiveStringCommands.SetCommand
SET command parameters. |
static class |
ReactiveStringCommands.SetRangeCommand
SETRANGE command parameters. |
Modifier and Type | Method and Description |
---|---|
default reactor.core.publisher.Mono<Long> |
append(ByteBuffer key,
ByteBuffer value)
Append a value to key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.AppendCommand,Long>> |
append(org.reactivestreams.Publisher<ReactiveStringCommands.AppendCommand> commands)
|
default reactor.core.publisher.Mono<Long> |
bitCount(ByteBuffer key)
Count the number of set bits (population counting) in value stored at key.
|
default reactor.core.publisher.Mono<Long> |
bitCount(ByteBuffer key,
long begin,
long end)
Count the number of set bits (population counting) of value stored at key between begin and
end.
|
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.
|
default reactor.core.publisher.Mono<Long> |
bitOp(Collection<ByteBuffer> keys,
RedisStringCommands.BitOperation bitOp,
ByteBuffer destination)
Perform bitwise operations between strings.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.BitOpCommand,Long>> |
bitOp(org.reactivestreams.Publisher<ReactiveStringCommands.BitOpCommand> commands)
Perform bitwise operations between strings.
|
default reactor.core.publisher.Mono<ByteBuffer> |
get(ByteBuffer key)
Get single element stored at key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveRedisConnection.KeyCommand>> |
get(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
Get elements one by one.
|
default reactor.core.publisher.Mono<Boolean> |
getBit(ByteBuffer key,
long offset)
Get the bit value at offset of value at key.
|
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.
|
default reactor.core.publisher.Mono<ByteBuffer> |
getRange(ByteBuffer key,
long begin,
long end)
Get a substring of value of key between begin and end.
|
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.
|
default reactor.core.publisher.Mono<ByteBuffer> |
getSet(ByteBuffer key,
ByteBuffer value)
Set value for key and return the existing value.
|
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.
|
default reactor.core.publisher.Mono<List<ByteBuffer>> |
mGet(List<ByteBuffer> keys)
Get multiple values in one batch.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<List<ByteBuffer>,ByteBuffer>> |
mGet(org.reactivestreams.Publisher<List<ByteBuffer>> keysets)
Get multiple values at for keysets in batches.
|
default reactor.core.publisher.Mono<Boolean> |
mSet(Map<ByteBuffer,ByteBuffer> keyValuePairs)
Set multiple keys to multiple values using key-value pairs provided in tuple.
|
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.
|
default reactor.core.publisher.Mono<Boolean> |
mSetNX(Map<ByteBuffer,ByteBuffer> keyValuePairs)
Set multiple keys to multiple values using key-value pairs provided in keyValuePairs only if the
provided key does not exist.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.MSetCommand>> |
mSetNX(org.reactivestreams.Publisher<ReactiveStringCommands.MSetCommand> source)
Set multiple keys to multiple values using key-value pairs provided in tuples only if the provided key
does not exist.
|
default reactor.core.publisher.Mono<Boolean> |
pSetEX(ByteBuffer key,
ByteBuffer value,
Expiration expireTimeout)
Set key value pair and
Expiration . |
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> |
pSetEX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Set key value pairs and
Expiration . |
default reactor.core.publisher.Mono<Boolean> |
set(ByteBuffer key,
ByteBuffer value)
Set value for key.
|
default reactor.core.publisher.Mono<Boolean> |
set(ByteBuffer key,
ByteBuffer value,
Expiration expiration,
RedisStringCommands.SetOption option)
Set value for key with expiration and options.
|
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 . |
default reactor.core.publisher.Mono<Boolean> |
setBit(ByteBuffer key,
long offset,
boolean value)
Sets the bit at offset in value stored at key and return the original value.
|
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.
|
default reactor.core.publisher.Mono<Boolean> |
setEX(ByteBuffer key,
ByteBuffer value,
Expiration expireTimeout)
Set key value pair and
Expiration . |
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> |
setEX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Set key value pairs and
Expiration . |
default reactor.core.publisher.Mono<Boolean> |
setNX(ByteBuffer key,
ByteBuffer value)
Set value for key, only if key does not exist.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> |
setNX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> values)
Set key value pairs, only if key does not exist.
|
default reactor.core.publisher.Mono<Long> |
setRange(ByteBuffer key,
ByteBuffer value,
long offset)
Overwrite parts of key starting at the specified offset with given value.
|
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 . |
default reactor.core.publisher.Mono<Long> |
strLen(ByteBuffer key)
Get the length of the value stored at key.
|
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> |
strLen(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
Get the length of the value stored at key.
|
default reactor.core.publisher.Mono<Boolean> set(ByteBuffer key, ByteBuffer value)
key
- must not be null.value
- must not be null.default reactor.core.publisher.Mono<Boolean> set(ByteBuffer key, ByteBuffer value, Expiration expiration, RedisStringCommands.SetOption option)
key
- must not be null.value
- must not be null.expiration
- must not be null.option
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> set(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
ReactiveStringCommands.SetCommand
.commands
- must not be null.Flux
of ReactiveRedisConnection.BooleanResponse
holding the ReactiveStringCommands.SetCommand
along with the command result.default reactor.core.publisher.Mono<ByteBuffer> get(ByteBuffer key)
key
- must not be null.ByteBuffer
in case key does not exist.reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveRedisConnection.KeyCommand>> get(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
keys
- must not be null.Flux
of ReactiveRedisConnection.ByteBufferResponse
holding the key to get along with the value
retrieved.default reactor.core.publisher.Mono<ByteBuffer> getSet(ByteBuffer key, ByteBuffer value)
key
- must not be null.value
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveStringCommands.SetCommand>> getSet(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
commands
- must not be null.Flux
of ReactiveRedisConnection.ByteBufferResponse
holding the ReactiveStringCommands.SetCommand
along with the previously
existing value.default reactor.core.publisher.Mono<List<ByteBuffer>> mGet(List<ByteBuffer> keys)
keys
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<List<ByteBuffer>,ByteBuffer>> mGet(org.reactivestreams.Publisher<List<ByteBuffer>> keysets)
keysets
- must not be null.default reactor.core.publisher.Mono<Boolean> setNX(ByteBuffer key, ByteBuffer value)
key
- must not be null.value
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> setNX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> values)
values
- must not be null.default reactor.core.publisher.Mono<Boolean> setEX(ByteBuffer key, ByteBuffer value, Expiration expireTimeout)
Expiration
.key
- must not be null.value
- must not be null.expireTimeout
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> setEX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Expiration
.commands
- must not be null.default reactor.core.publisher.Mono<Boolean> pSetEX(ByteBuffer key, ByteBuffer value, Expiration expireTimeout)
Expiration
.key
- must not be null.value
- must not be null.expireTimeout
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetCommand>> pSetEX(org.reactivestreams.Publisher<ReactiveStringCommands.SetCommand> commands)
Expiration
.commands
- must not be null.default reactor.core.publisher.Mono<Boolean> mSet(Map<ByteBuffer,ByteBuffer> keyValuePairs)
keyValuePairs
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.MSetCommand>> mSet(org.reactivestreams.Publisher<ReactiveStringCommands.MSetCommand> commands)
commands
- must not be null.default reactor.core.publisher.Mono<Boolean> mSetNX(Map<ByteBuffer,ByteBuffer> keyValuePairs)
keyValuePairs
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.MSetCommand>> mSetNX(org.reactivestreams.Publisher<ReactiveStringCommands.MSetCommand> source)
source
- must not be null.default reactor.core.publisher.Mono<Long> append(ByteBuffer key, ByteBuffer value)
key
- must not be null.value
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.AppendCommand,Long>> append(org.reactivestreams.Publisher<ReactiveStringCommands.AppendCommand> commands)
ReactiveStringCommands.AppendCommand.getValue()
to the ReactiveRedisConnection.KeyCommand.getKey()
.commands
- must not be null.default reactor.core.publisher.Mono<ByteBuffer> getRange(ByteBuffer key, long begin, long end)
key
- must not be null.begin
- end
- reactor.core.publisher.Flux<ReactiveRedisConnection.ByteBufferResponse<ReactiveRedisConnection.RangeCommand>> getRange(org.reactivestreams.Publisher<ReactiveRedisConnection.RangeCommand> commands)
commands
- must not be null.default reactor.core.publisher.Mono<Long> setRange(ByteBuffer key, ByteBuffer value, long offset)
key
- must not be null.value
- must not be null.offset
- reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.SetRangeCommand,Long>> setRange(org.reactivestreams.Publisher<ReactiveStringCommands.SetRangeCommand> commands)
ReactiveRedisConnection.KeyCommand.key
starting at the specified offset with given
ReactiveStringCommands.SetRangeCommand.value
.commands
- must not be null.default reactor.core.publisher.Mono<Boolean> getBit(ByteBuffer key, long offset)
key
- must not be null.offset
- reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.GetBitCommand>> getBit(org.reactivestreams.Publisher<ReactiveStringCommands.GetBitCommand> commands)
commands
- must not be null.default reactor.core.publisher.Mono<Boolean> setBit(ByteBuffer key, long offset, boolean value)
key
- must not be null.offset
- value
- reactor.core.publisher.Flux<ReactiveRedisConnection.BooleanResponse<ReactiveStringCommands.SetBitCommand>> setBit(org.reactivestreams.Publisher<ReactiveStringCommands.SetBitCommand> commands)
commands
- must not be null.default reactor.core.publisher.Mono<Long> bitCount(ByteBuffer key)
key
- must not be null.default reactor.core.publisher.Mono<Long> bitCount(ByteBuffer key, long begin, long end)
key
- must not be null.begin
- end
- reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.BitCountCommand,Long>> bitCount(org.reactivestreams.Publisher<ReactiveStringCommands.BitCountCommand> commands)
commands
- must not be null.default reactor.core.publisher.Mono<Long> bitOp(Collection<ByteBuffer> keys, RedisStringCommands.BitOperation bitOp, ByteBuffer destination)
keys
- must not be null.bitOp
- must not be null.destination
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveStringCommands.BitOpCommand,Long>> bitOp(org.reactivestreams.Publisher<ReactiveStringCommands.BitOpCommand> commands)
commands
- must not be null.default reactor.core.publisher.Mono<Long> strLen(ByteBuffer key)
key
- must not be null.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> strLen(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> keys)
keys
- must not be null.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.