接口 RedisConnectionDetails
- 所有超级接口:
ConnectionDetails
Details required to establish a connection to a Redis service.
- 从以下版本开始:
- 3.1.0
- 作者:
- Moritz Halbritter, Andy Wilkinson
-
嵌套类概要
嵌套类修饰符和类型接口说明static interfaceRedis cluster configuration.static final recordA node in a sentinel or cluster configuration.static interfaceRedis sentinel configuration.static interfaceRedis standalone configuration. -
方法概要
修饰符和类型方法说明default RedisConnectionDetails.ClusterRedis cluster configuration.default StringLogin password of the redis server.default RedisConnectionDetails.SentinelRedis sentinel configuration.Redis standalone configuration.default StringLogin username of the redis server.
-
方法详细资料
-
getUsername
Login username of the redis server.- 返回:
- the login username of the redis server
-
getPassword
Login password of the redis server.- 返回:
- the login password of the redis server
-
getStandalone
Redis standalone configuration. Mutually exclusive withgetSentinel()andgetCluster().- 返回:
- the Redis standalone configuration
-
getSentinel
Redis sentinel configuration. Mutually exclusive withgetStandalone()andgetCluster().- 返回:
- the Redis sentinel configuration
-
getCluster
Redis cluster configuration. Mutually exclusive withgetStandalone()andgetSentinel().- 返回:
- the Redis cluster configuration
-