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
Modifier and TypeInterfaceDescriptionstatic 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. -
Method Summary
Modifier and TypeMethodDescriptiondefault 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.
-
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
-