Interface RedisConnectionDetails
- All Superinterfaces:
ConnectionDetails
Details required to establish a connection to a Redis service.
- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRedis cluster configuration.static final recordA node in a sentinel or cluster configuration.static interfaceRedis sentinel configuration.static interfaceRedis standalone configuration. -
Method Summary
Modifier and TypeMethodDescriptiondefault 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.
-
Method Details
-
getUsername
Login username of the redis server.- Returns:
- the login username of the redis server
-
getPassword
Login password of the redis server.- Returns:
- the login password of the redis server
-
getStandalone
Redis standalone configuration. Mutually exclusive withgetSentinel()andgetCluster().- Returns:
- the Redis standalone configuration
-
getSentinel
Redis sentinel configuration. Mutually exclusive withgetStandalone()andgetCluster().- Returns:
- the Redis sentinel configuration
-
getCluster
Redis cluster configuration. Mutually exclusive withgetStandalone()andgetSentinel().- Returns:
- the Redis cluster configuration
-