@ConfigurationProperties(prefix="spring.redis") public class RedisProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RedisProperties.ClientType
Type of Redis client to use.
|
static class |
RedisProperties.Cluster
Cluster properties.
|
static class |
RedisProperties.Jedis
Jedis client properties.
|
static class |
RedisProperties.Lettuce
Lettuce client properties.
|
static class |
RedisProperties.Pool
Pool properties.
|
static class |
RedisProperties.Sentinel
Redis sentinel properties.
|
Constructor and Description |
---|
RedisProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getClientName() |
RedisProperties.ClientType |
getClientType() |
RedisProperties.Cluster |
getCluster() |
Duration |
getConnectTimeout() |
int |
getDatabase() |
String |
getHost() |
RedisProperties.Jedis |
getJedis() |
RedisProperties.Lettuce |
getLettuce() |
String |
getPassword() |
int |
getPort() |
RedisProperties.Sentinel |
getSentinel() |
Duration |
getTimeout() |
String |
getUrl() |
String |
getUsername() |
boolean |
isSsl() |
void |
setClientName(String clientName) |
void |
setClientType(RedisProperties.ClientType clientType) |
void |
setCluster(RedisProperties.Cluster cluster) |
void |
setConnectTimeout(Duration connectTimeout) |
void |
setDatabase(int database) |
void |
setHost(String host) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setSentinel(RedisProperties.Sentinel sentinel) |
void |
setSsl(boolean ssl) |
void |
setTimeout(Duration timeout) |
void |
setUrl(String url) |
void |
setUsername(String username) |
public int getDatabase()
public void setDatabase(int database)
public String getUrl()
public void setUrl(String url)
public String getHost()
public void setHost(String host)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public int getPort()
public void setPort(int port)
public boolean isSsl()
public void setSsl(boolean ssl)
public void setTimeout(Duration timeout)
public Duration getTimeout()
public Duration getConnectTimeout()
public void setConnectTimeout(Duration connectTimeout)
public String getClientName()
public void setClientName(String clientName)
public RedisProperties.ClientType getClientType()
public void setClientType(RedisProperties.ClientType clientType)
public RedisProperties.Sentinel getSentinel()
public void setSentinel(RedisProperties.Sentinel sentinel)
public RedisProperties.Cluster getCluster()
public void setCluster(RedisProperties.Cluster cluster)
public RedisProperties.Jedis getJedis()
public RedisProperties.Lettuce getLettuce()