接口 RedisConnectionDetails
- 所有超级接口:
ConnectionDetails
Details required to establish a connection to a Redis service.
- 从以下版本开始:
- 3.1.0
- 作者:
- Moritz Halbritter, Andy Wilkinson
-
嵌套类概要
嵌套类修饰符和类型接口说明static interface
Redis cluster configuration.static final record
A node in a sentinel or cluster configuration.static interface
Redis sentinel configuration.static interface
Redis standalone configuration. -
方法概要
修饰符和类型方法说明default RedisConnectionDetails.Cluster
Redis cluster configuration.default String
Login password of the redis server.default RedisConnectionDetails.Sentinel
Redis sentinel configuration.Redis standalone configuration.default String
Login 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
-