Interface DataRedisConnectionDetails.Sentinel
- Enclosing interface:
DataRedisConnectionDetails
public static interface DataRedisConnectionDetails.Sentinel
Redis sentinel configuration.
- Since:
- 4.0.0
- Author:
- Moritz Halbritter, Andy Wilkinson
-
Method Details
-
getDatabase
int getDatabase()Database index used by the connection factory.- Returns:
- the database index used by the connection factory
-
getMaster
-
getNodes
-
getUsername
@Nullable String getUsername()Login username for authenticating with sentinel(s).- Returns:
- the login username for authenticating with sentinel(s) or
null
-
getPassword
@Nullable String getPassword()Password for authenticating with sentinel(s).- Returns:
- the password for authenticating with sentinel(s) or
null
-