接口 RedisConnectionDetails.Standalone
- 封闭接口:
RedisConnectionDetails
public static interface RedisConnectionDetails.Standalone
Redis standalone configuration.
-
方法概要
修饰符和类型方法说明default intDatabase index used by the connection factory.getHost()Redis server host.intgetPort()Redis server port.default SslBundleSSL bundle to use.Creates a new instance with the given host and port.Creates a new instance with the given host, port and database.Creates a new instance with the given host, port, database and SSL bundle.Creates a new instance with the given host, port and SSL bundle.
-
方法详细资料
-
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
SSL bundle to use.- 返回:
- the SSL bundle to use
- 从以下版本开始:
- 3.5.0
-
of
Creates a new instance with the given host and port.- 参数:
host- the hostport- the port- 返回:
- the new instance
-
of
Creates a new instance with the given host, port and SSL bundle.- 参数:
host- the hostport- the portsslBundle- the SSL bundle- 返回:
- the new instance
- 从以下版本开始:
- 3.5.0
-
of
Creates a new instance with the given host, port and database.- 参数:
host- the hostport- the portdatabase- 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 hostport- the portdatabase- the databasesslBundle- the SSL bundle- 返回:
- the new instance
- 从以下版本开始:
- 3.5.0
-