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 TypeMethodDescriptionbgReWriteAof(RedisClusterNode node) Start an Append Only File rewrite process on the specific server.bgSave(RedisClusterNode node) Start background saving of db on server.dbSize(RedisClusterNode node) Get the total number of available keys in currently selected database.flushAll(RedisClusterNode node) Delete all all keys from all databases.flushAll(RedisClusterNode node, RedisServerCommands.FlushOption option) Delete all all keys from all databases using the specifiedRedisServerCommands.FlushOption.flushDb(RedisClusterNode node) Delete all keys of the currently selected database.flushDb(RedisClusterNode node, RedisServerCommands.FlushOption option) Delete all keys of the currently selected database using the specifiedRedisServerCommands.FlushOption.Request information and statistics about connected clients.getConfig(RedisClusterNode node, String pattern) Load configuration parameters for givenpatternfrom server.info(RedisClusterNode node) Load default server information like memory cpu utilization replicationinfo(RedisClusterNode node, String section) Load server information for givenselection.lastSave(RedisClusterNode node) Get time unix timestamp of last successfulReactiveServerCommands.bgSave()operation in seconds.Reset statistic counters on server.save(RedisClusterNode node) Synchronous save current db snapshot on server.setConfig(RedisClusterNode node, String param, String value) Set server configuration forparamtovalue.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
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
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:
-