类 RedisProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.data.redis.RedisProperties
@ConfigurationProperties(prefix="spring.redis") public class RedisProperties extends Object
Configuration properties for Redis.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
RedisProperties.Cluster
Cluster properties.static class
RedisProperties.Pool
Pool properties.static class
RedisProperties.Sentinel
Redis sentinel properties.
构造器概要
构造器 构造器 说明 RedisProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
RedisProperties
public RedisProperties()
方法详细资料
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)