Interface DataRedisConnectionDetails.Standalone
- Enclosing interface:
DataRedisConnectionDetails
public static interface DataRedisConnectionDetails.Standalone
Redis standalone configuration.
- Since:
- 4.0.0
- Author:
- Moritz Halbritter, Andy Wilkinson
-
Method Details
-
getHost
-
getPort
int getPort()Redis server port.- Returns:
- the redis server port
-
getDatabase
default int getDatabase()Database index used by the connection factory.- Returns:
- the database index used by the connection factory
-
of
Creates a new instance with the given host and port.- Parameters:
host
- the hostport
- the port- Returns:
- the new instance
-
of
Creates a new instance with the given host, port and database.- Parameters:
host
- the hostport
- the portdatabase
- the database- Returns:
- the new instance
-