Interface RedisConfiguration.WithDatabaseIndex

All Known Subinterfaces:
RedisConfiguration.DomainSocketConfiguration, RedisConfiguration.SentinelConfiguration, RedisConfiguration.StaticMasterReplicaConfiguration
All Known Implementing Classes:
RedisSentinelConfiguration, RedisSocketConfiguration, RedisStandaloneConfiguration, RedisStaticMasterReplicaConfiguration
Enclosing interface:
RedisConfiguration

public static interface RedisConfiguration.WithDatabaseIndex
RedisConfiguration part suitable for configurations that use a specific database.
Since:
2.1
Author:
Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the database index to use.
    void
    setDatabase(int dbIndex)
    Set the database index to use.
  • Method Details

    • setDatabase

      void setDatabase(int dbIndex)
      Set the database index to use.
      Parameters:
      dbIndex -
    • getDatabase

      int getDatabase()
      Get the database index to use.
      Returns:
      zero by default.