Interface RedisConnectionDetails.Standalone

Enclosing interface:
RedisConnectionDetails

public static interface RedisConnectionDetails.Standalone
Redis standalone configuration.
  • Method Details

    • getHost

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

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

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

      default SslBundle getSslBundle()
      SSL bundle to use.
      Returns:
      the SSL bundle to use
      Since:
      3.5.0
    • of

      static RedisConnectionDetails.Standalone of(String host, int port)
      Creates a new instance with the given host and port.
      Parameters:
      host - the host
      port - the port
      Returns:
      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.
      Parameters:
      host - the host
      port - the port
      sslBundle - the SSL bundle
      Returns:
      the new instance
      Since:
      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.
      Parameters:
      host - the host
      port - the port
      database - the database
      Returns:
      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.
      Parameters:
      host - the host
      port - the port
      database - the database
      sslBundle - the SSL bundle
      Returns:
      the new instance
      Since:
      3.5.0