Class RedisProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.data.redis.RedisProperties
@ConfigurationProperties(prefix="spring.redis") public class RedisProperties extends Object
Configuration properties for Redis.
Nested Class Summary
Nested Classes Modifier and Type Class Description 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 Summary
Constructors Constructor Description RedisProperties()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisProperties.Cluster
getCluster()
int
getDatabase()
String
getHost()
RedisProperties.Jedis
getJedis()
RedisProperties.Lettuce
getLettuce()
String
getPassword()
int
getPort()
RedisProperties.Sentinel
getSentinel()
Duration
getTimeout()
String
getUrl()
boolean
isSsl()
void
setCluster(RedisProperties.Cluster cluster)
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)
Constructor Detail
RedisProperties
public RedisProperties()
Method Detail
getDatabase
public int getDatabase()
setDatabase
public void setDatabase(int database)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getPort
public int getPort()
setPort
public void setPort(int port)
isSsl
public boolean isSsl()
setSsl
public void setSsl(boolean ssl)
setTimeout
public void setTimeout(Duration timeout)
getTimeout
public Duration getTimeout()
getSentinel
public RedisProperties.Sentinel getSentinel()
setSentinel
public void setSentinel(RedisProperties.Sentinel sentinel)
getCluster
public RedisProperties.Cluster getCluster()
setCluster
public void setCluster(RedisProperties.Cluster cluster)
getJedis
public RedisProperties.Jedis getJedis()
getLettuce
public RedisProperties.Lettuce getLettuce()