K - Key type.V - Value type.public interface BaseRedisReactiveCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
<T> Flux<T> |
dispatch(ProtocolKeyword type,
CommandOutput<K,V,?> output)
Dispatch a command to the Redis Server.
|
<T> Flux<T> |
dispatch(ProtocolKeyword type,
CommandOutput<K,V,?> output,
CommandArgs<K,V> args)
Dispatch a command to the Redis Server.
|
Mono<V> |
echo(V msg)
Echo the given string.
|
void |
flushCommands()
Deprecated.
since 6.2. Use the corresponding
StatefulConnection.flushCommands() method on the
connection interface. To be removed with Lettuce 7.0. |
JsonParser |
getJsonParser() |
boolean |
isOpen()
Deprecated.
since 6.2. Use the corresponding
StatefulConnection.isOpen() method on the
connection interface. To be removed with Lettuce 7.0. |
Mono<String> |
ping()
Ping the server.
|
Mono<Long> |
publish(K channel,
V message)
Post a message to a channel.
|
Flux<K> |
pubsubChannels()
Lists the currently *active channels*.
|
Flux<K> |
pubsubChannels(K channel)
Lists the currently *active channels*.
|
Mono<Long> |
pubsubNumpat()
Returns the number of subscriptions to patterns.
|
Mono<Map<K,Long>> |
pubsubNumsub(K... channels)
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.
|
Flux<K> |
pubsubShardChannels()
Lists the currently *active shard channels*.
|
Flux<K> |
pubsubShardChannels(K pattern)
Lists the currently *active shard channels*.
|
Mono<Map<K,Long>> |
pubsubShardNumsub(K... shardChannels)
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified shard channels.
|
Mono<String> |
quit()
Instructs Redis to disconnect the connection.
|
Mono<String> |
readOnly()
Switch connection to Read-Only mode when connecting to a cluster.
|
Mono<String> |
readWrite()
Switch connection to Read-Write mode (default) when connecting to a cluster.
|
void |
reset()
Deprecated.
since 6.2. Use the corresponding
StatefulConnection.reset() method on the
connection interface. To be removed with Lettuce 7.0. |
Flux<Object> |
role()
Return the role of the instance in the context of replication.
|
void |
setAutoFlushCommands(boolean autoFlush)
Deprecated.
since 6.2. Use the corresponding
StatefulConnection.setAutoFlushCommands(boolean)
method on the connection interface. To be removed with Lettuce 7.0. |
Mono<Long> |
spublish(K shardChannel,
V message)
Post a message to a shard channel.
|
Mono<Long> |
waitForReplication(int replicas,
long timeout)
Wait for replication.
|
Mono<Long> publish(K channel, V message)
channel - the channel type: key.message - the message type: value.Flux<K> pubsubChannels()
Flux<K> pubsubChannels(K channel)
channel - the key.Mono<Map<K,Long>> pubsubNumsub(K... channels)
channels - channel keys.Flux<K> pubsubShardChannels()
Flux<K> pubsubShardChannels(K pattern)
pattern - the pattern type: patternkey (pattern).Mono<Map<K,Long>> pubsubShardNumsub(K... shardChannels)
shardChannels - channel keys.Mono<Long> pubsubNumpat()
Mono<Long> spublish(K shardChannel, V message)
shardChannel - the shard channel type: key.message - the message type: value.Mono<V> echo(V msg)
msg - the message type: value.Flux<Object> role()
Mono<String> readOnly()
Mono<String> readWrite()
Mono<String> quit()
StatefulConnection.close() to close connections and
release resources.Mono<Long> waitForReplication(int replicas, long timeout)
replicas - minimum number of replicas.timeout - timeout in milliseconds.<T> Flux<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,?> output)
T - response type.type - the command, must not be null.output - the command output, must not be null.<T> Flux<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,?> output, CommandArgs<K,V> args)
T - response type.type - the command, must not be null.output - the command output, must not be null.args - the command arguments, must not be null.@Deprecated boolean isOpen()
StatefulConnection.isOpen() method on the
connection interface. To be removed with Lettuce 7.0.true if the connection is open (connected and not closed).@Deprecated void reset()
StatefulConnection.reset() method on the
connection interface. To be removed with Lettuce 7.0.@Deprecated void setAutoFlushCommands(boolean autoFlush)
StatefulConnection.setAutoFlushCommands(boolean)
method on the connection interface. To be removed with Lettuce 7.0.true. If autoFlushCommands is disabled, multiple commands can
be issued without writing them actually to the transport. Commands are buffered until a flushCommands() is
issued. After calling flushCommands() commands are sent to the transport and executed by Redis.autoFlush - state of autoFlush.@Deprecated void flushCommands()
StatefulConnection.flushCommands() method on the
connection interface. To be removed with Lettuce 7.0.JsonParser getJsonParser()
JsonParserCopyright © 2025 lettuce.io. All rights reserved.