Interface ValkeyConnectionDetails.Standalone

Enclosing interface:
ValkeyConnectionDetails

public static interface ValkeyConnectionDetails.Standalone
Valkey standalone configuration.
  • Method Details

    • getHost

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

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

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

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