public class RedisStandaloneConfiguration extends Object
RedisConnection via RedisConnectionFactory using connecting
to a single node Redis installation.| Constructor and Description |
|---|
RedisStandaloneConfiguration()
Create a new default
RedisStandaloneConfiguration. |
RedisStandaloneConfiguration(String hostName)
Create a new
RedisStandaloneConfiguration given hostName. |
RedisStandaloneConfiguration(String hostName,
int port)
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDatabase() |
String |
getHostName() |
RedisPassword |
getPassword() |
int |
getPort() |
void |
setDatabase(int index)
Sets the index of the database used by this connection factory.
|
void |
setHostName(String hostName) |
void |
setPassword(RedisPassword password) |
void |
setPort(int port) |
public RedisStandaloneConfiguration()
RedisStandaloneConfiguration.public RedisStandaloneConfiguration(String hostName)
RedisStandaloneConfiguration given hostName.hostName - must not be null or empty.public RedisStandaloneConfiguration(String hostName, int port)
hostName - must not be null or empty.port - a valid TCP port (1-65535).public String getHostName()
public int getPort()
public void setHostName(String hostName)
hostName - the hostname or ip of the Redis node.public void setPort(int port)
port - the Redis node port to connect to.public int getDatabase()
public void setDatabase(int index)
index - database index.public RedisPassword getPassword()
public void setPassword(RedisPassword password)
password - must not be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.