接口 RedisConnectionDetails.Standalone

封闭接口:
RedisConnectionDetails

public static interface RedisConnectionDetails.Standalone
Redis standalone configuration.
  • 方法详细资料

    • getHost

      String getHost()
      Redis server host.
      返回:
      the redis server host
    • getPort

      int getPort()
      Redis server port.
      返回:
      the redis server port
    • getDatabase

      default int getDatabase()
      Database index used by the connection factory.
      返回:
      the database index used by the connection factory
    • getSslBundle

      default SslBundle getSslBundle()
      SSL bundle to use.
      返回:
      the SSL bundle to use
      从以下版本开始:
      3.5.0
    • of

      static RedisConnectionDetails.Standalone of(String host, int port)
      Creates a new instance with the given host and port.
      参数:
      host - the host
      port - the port
      返回:
      the new instance
    • of

      static RedisConnectionDetails.Standalone of(String host, int port, SslBundle sslBundle)
      Creates a new instance with the given host, port and SSL bundle.
      参数:
      host - the host
      port - the port
      sslBundle - the SSL bundle
      返回:
      the new instance
      从以下版本开始:
      3.5.0
    • of

      static RedisConnectionDetails.Standalone of(String host, int port, int database)
      Creates a new instance with the given host, port and database.
      参数:
      host - the host
      port - the port
      database - the database
      返回:
      the new instance
    • of

      static RedisConnectionDetails.Standalone of(String host, int port, int database, SslBundle sslBundle)
      Creates a new instance with the given host, port, database and SSL bundle.
      参数:
      host - the host
      port - the port
      database - the database
      sslBundle - the SSL bundle
      返回:
      the new instance
      从以下版本开始:
      3.5.0