Interface RedisNodeAsync

All Known Subinterfaces:
RedisClusterMaster, RedisClusterMasterAsync, RedisClusterNode, RedisClusterNodeAsync, RedisClusterSlave, RedisClusterSlaveAsync, RedisMaster, RedisMasterAsync, RedisSentinel, RedisSentinelAsync, RedisSlave, RedisSlaveAsync
All Known Implementing Classes:
RedisNode, SentinelRedisNode

public interface RedisNodeAsync
Base Redis node API interface
Author:
Nikita Koksharov
  • Method Details

    • getMemoryStatisticsAsync

      RFuture<Map<String,String>> getMemoryStatisticsAsync()
      Returns Redis memory statistics
      Returns:
      statistics info map
    • timeAsync

      RFuture<Time> timeAsync()
      Returns current Redis server time in seconds
      Returns:
      time in seconds
    • pingAsync

      RFuture<Boolean> pingAsync()
      Ping Redis node. Default timeout is 1000 milliseconds
      Returns:
      true if "PONG" reply received, false otherwise
    • pingAsync

      RFuture<Boolean> pingAsync(long timeout, TimeUnit timeUnit)
      Ping Redis node with specified timeout.
      Parameters:
      timeout - - ping timeout
      timeUnit - - timeout unit
      Returns:
      true if "PONG" reply received, false otherwise
    • infoAsync

      Returns information about Redis node.
      Parameters:
      section - - section of information
      Returns:
      information map
    • getConfigAsync

      RFuture<Map<String,String>> getConfigAsync(String parameter)
      Get value of Redis configuration parameter.
      Parameters:
      parameter - - name of parameter
      Returns:
      value of parameter
    • setConfigAsync

      RFuture<Void> setConfigAsync(String parameter, String value)
      Set value of Redis configuration parameter.
      Parameters:
      parameter - - name of parameter
      value - - value of parameter
      Returns:
      void
    • bgSaveAsync

      RFuture<Void> bgSaveAsync()
      Runs the Redis database saving process in background.
    • scheduleBgSaveAsync

      RFuture<Void> scheduleBgSaveAsync()
      Save the Redis database in background. If AOF rewrite process is in progress then the background save is scheduled to run upon its completion.
    • saveAsync

      RFuture<Void> saveAsync()
      Save the Redis database.
    • getLastSaveTimeAsync

      RFuture<Instant> getLastSaveTimeAsync()
      Returns time of the last successful Redis database save operation.
      Returns:
      time
    • bgRewriteAOFAsync

      RFuture<Void> bgRewriteAOFAsync()
      Runs an Append Only File rewrite process. Starts only if there is no a background process doing persistence.

      If fails no data gets lost

    • sizeAsync

      RFuture<Long> sizeAsync()
      Returns keys amount stored in this Redis node.
      Returns:
      keys amount