Interface ReactiveClusterServerCommands
- All Superinterfaces:
ReactiveServerCommands
Redis Server commands executed in cluster environment using reactive infrastructure.
- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl, Dennis Neufeld
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<String>bgReWriteAof(RedisClusterNode node) Start an Append Only File rewrite process on the specific server.reactor.core.publisher.Mono<String>bgSave(RedisClusterNode node) Start background saving of db on server.reactor.core.publisher.Mono<Long>dbSize(RedisClusterNode node) Get the total number of available keys in currently selected database.reactor.core.publisher.Mono<String>flushAll(RedisClusterNode node) Delete all all keys from all databases.reactor.core.publisher.Mono<String>flushAll(RedisClusterNode node, RedisServerCommands.FlushOption option) Delete all all keys from all databases using the specifiedRedisServerCommands.FlushOption.reactor.core.publisher.Mono<String>flushDb(RedisClusterNode node) Delete all keys of the currently selected database.reactor.core.publisher.Mono<String>flushDb(RedisClusterNode node, RedisServerCommands.FlushOption option) Delete all keys of the currently selected database using the specifiedRedisServerCommands.FlushOption.reactor.core.publisher.Flux<RedisClientInfo>Request information and statistics about connected clients.reactor.core.publisher.Mono<Properties>getConfig(RedisClusterNode node, String pattern) Load configuration parameters for givenpatternfrom server.reactor.core.publisher.Mono<Properties>info(RedisClusterNode node) Load default server information like memory cpu utilization replicationreactor.core.publisher.Mono<Properties>info(RedisClusterNode node, String section) Load server information for givenselection.reactor.core.publisher.Mono<Long>lastSave(RedisClusterNode node) Get time unix timestamp of last successfulReactiveServerCommands.bgSave()operation in seconds.reactor.core.publisher.Mono<String>Reset statistic counters on server.reactor.core.publisher.Mono<String>save(RedisClusterNode node) Synchronous save current db snapshot on server.reactor.core.publisher.Mono<String>setConfig(RedisClusterNode node, String param, String value) Set server configuration forparamtovalue.reactor.core.publisher.Mono<Long>time(RedisClusterNode node) Request server timestamp usingTIMEcommand.Methods inherited from interface org.springframework.data.redis.connection.ReactiveServerCommands
bgReWriteAof, bgSave, dbSize, flushAll, flushAll, flushDb, flushDb, getClientList, getClientName, getConfig, info, info, killClient, lastSave, resetConfigStats, save, setClientName, setConfig, time, time
-
Method Details
-
bgReWriteAof
Start an Append Only File rewrite process on the specific server.- Parameters:
node- must not be null.- Returns:
Monoindicating command completion.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
bgSave
Start background saving of db on server.- Parameters:
node- must not be null.- Returns:
Monoindicating command received by server. Operation success needs to be checked vialastSave(RedisClusterNode).- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
lastSave
Get time unix timestamp of last successfulReactiveServerCommands.bgSave()operation in seconds.- Parameters:
node- must not be null.- Returns:
Monowrapping unix timestamp.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
save
Synchronous save current db snapshot on server.- Parameters:
node- must not be null.- Returns:
Monoindicating command completion.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
dbSize
Get the total number of available keys in currently selected database.- Parameters:
node- must not be null.- Returns:
Monowrapping number of keys.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
flushDb
Delete all keys of the currently selected database.- Parameters:
node- must not be null.Monoindicating command completion.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
flushDb
reactor.core.publisher.Mono<String> flushDb(RedisClusterNode node, RedisServerCommands.FlushOption option) Delete all keys of the currently selected database using the specifiedRedisServerCommands.FlushOption.- Parameters:
node- must not be null.Monoindicating command completion.option-- Throws:
IllegalArgumentException- whennodeis null.- Since:
- 2.7
- See Also:
-
flushAll
Delete all all keys from all databases.- Parameters:
node- must not be null.- Returns:
Monoindicating command completion.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
flushAll
reactor.core.publisher.Mono<String> flushAll(RedisClusterNode node, RedisServerCommands.FlushOption option) Delete all all keys from all databases using the specifiedRedisServerCommands.FlushOption.- Parameters:
node- must not be null.option-- Returns:
Monoindicating command completion.- Throws:
IllegalArgumentException- whennodeis null.- Since:
- 2.7
- See Also:
-
info
Load default server information like- memory
- cpu utilization
- replication
- Parameters:
node- must not be null.- Returns:
Monowrapping server information.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
info
Load server information for givenselection.- Parameters:
node- must not be null.section- must not be null nor empty.- Returns:
Monowrapping server information of givensection.- Throws:
IllegalArgumentException- whennodeis null.IllegalArgumentException- when section is null or empty.- See Also:
-
getConfig
Load configuration parameters for givenpatternfrom server.- Parameters:
node- must not be null.pattern- must not be null.- Returns:
Monowrapping configuration parameters matching givenpattern.- Throws:
IllegalArgumentException- whennodeis null.IllegalArgumentException- whenpatternis null or empty.- See Also:
-
setConfig
Set server configuration forparamtovalue.- Parameters:
node- must not be null.param- must not be null nor empty.value- must not be null nor empty.- Throws:
IllegalArgumentException- whennodeis null.IllegalArgumentException- whenpattern/valueis null or empty.- See Also:
-
resetConfigStats
Reset statistic counters on server.
Counters can be retrieved usingReactiveServerCommands.info().- Parameters:
node- must not be null.- Returns:
Monoindicating command completion.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
time
Request server timestamp usingTIMEcommand.- Parameters:
node- must not be null.- Returns:
Monowrapping current server time in milliseconds.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-
getClientList
Request information and statistics about connected clients.- Parameters:
node- must not be null.- Returns:
FluxemittingRedisClientInfoobjects.- Throws:
IllegalArgumentException- whennodeis null.- See Also:
-