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.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()
String
getPassword()
RedisProperties.Pool
getPool()
int
getPort()
RedisProperties.Sentinel
getSentinel()
int
getTimeout()
String
getUrl()
boolean
isSsl()
void
setCluster(RedisProperties.Cluster cluster)
void
setDatabase(int database)
void
setHost(String host)
void
setPassword(String password)
void
setPool(RedisProperties.Pool pool)
void
setPort(int port)
void
setSentinel(RedisProperties.Sentinel sentinel)
void
setSsl(boolean ssl)
void
setTimeout(int 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(int timeout)
getTimeout
public int getTimeout()
getSentinel
public RedisProperties.Sentinel getSentinel()
setSentinel
public void setSentinel(RedisProperties.Sentinel sentinel)
getPool
public RedisProperties.Pool getPool()
setPool
public void setPool(RedisProperties.Pool pool)
getCluster
public RedisProperties.Cluster getCluster()
setCluster
public void setCluster(RedisProperties.Cluster cluster)