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 SummaryModifier 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.ReactiveServerCommandsbgReWriteAof, bgSave, dbSize, flushAll, flushAll, flushDb, flushDb, getClientList, getClientName, getConfig, info, info, killClient, lastSave, resetConfigStats, save, setClientName, setConfig, time, time
- 
Method Details- 
bgReWriteAofStart an Append Only File rewrite process on the specific server.- Parameters:
- node- must not be null.
- Returns:
- Monoindicating command completion.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
bgSaveStart background saving of db on server.- Parameters:
- node- must not be null.
- Returns:
- Monoindicating command received by server. Operation success needs to be checked via- lastSave(RedisClusterNode).
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
lastSaveGet time unix timestamp of last successfulReactiveServerCommands.bgSave()operation in seconds.- Parameters:
- node- must not be null.
- Returns:
- Monowrapping unix timestamp.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
saveSynchronous save current db snapshot on server.- Parameters:
- node- must not be null.
- Returns:
- Monoindicating command completion.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
dbSizeGet the total number of available keys in currently selected database.- Parameters:
- node- must not be null.
- Returns:
- Monowrapping number of keys.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
flushDbDelete all keys of the currently selected database.- Parameters:
- node- must not be null.- Monoindicating command completion.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
flushDbreactor.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- when- nodeis null.
- Since:
- 2.7
- See Also:
 
- 
flushAllDelete all all keys from all databases.- Parameters:
- node- must not be null.
- Returns:
- Monoindicating command completion.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
flushAllreactor.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- when- nodeis null.
- Since:
- 2.7
- See Also:
 
- 
infoLoad default server information like- memory
- cpu utilization
- replication
 - Parameters:
- node- must not be null.
- Returns:
- Monowrapping server information.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
infoLoad server information for givenselection.- Parameters:
- node- must not be null.
- section- must not be null nor empty.
- Returns:
- Monowrapping server information of given- section.
- Throws:
- IllegalArgumentException- when- nodeis null.
- IllegalArgumentException- when section is null or empty.
- See Also:
 
- 
getConfigLoad configuration parameters for givenpatternfrom server.- Parameters:
- node- must not be null.
- pattern- must not be null.
- Returns:
- Monowrapping configuration parameters matching given- pattern.
- Throws:
- IllegalArgumentException- when- nodeis null.
- IllegalArgumentException- when- patternis null or empty.
- See Also:
 
- 
setConfigSet 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- when- nodeis null.
- IllegalArgumentException- when- pattern/- valueis null or empty.
- See Also:
 
- 
resetConfigStatsReset statistic counters on server.
 Counters can be retrieved usingReactiveServerCommands.info().- Parameters:
- node- must not be null.
- Returns:
- Monoindicating command completion.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
timeRequest server timestamp usingTIMEcommand.- Parameters:
- node- must not be null.
- Returns:
- Monowrapping current server time in milliseconds.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
- 
getClientListRequest information and statistics about connected clients.- Parameters:
- node- must not be null.
- Returns:
- Fluxemitting- RedisClientInfoobjects.
- Throws:
- IllegalArgumentException- when- nodeis null.
- See Also:
 
 
-