Interface DataRedisConnectionDetails.Standalone

Enclosing interface:
DataRedisConnectionDetails

public static interface DataRedisConnectionDetails.Standalone
Redis standalone configuration.
Since:
4.0.0
Author:
Moritz Halbritter, Andy Wilkinson
  • 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
    • of

      static DataRedisConnectionDetails.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 DataRedisConnectionDetails.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