类 RedisProperties
java.lang.Object
org.springframework.boot.autoconfigure.data.redis.RedisProperties
Configuration properties for Redis.
- 从以下版本开始:
- 1.0.0
- 作者:
- Dave Syer, Christoph Strobl, Eddú Meléndez, Marco Aust, Mark Paluch, Stephane Nicoll, Scott Frederick
-
嵌套类概要
嵌套类修饰符和类型类说明static enum
Type of Redis client to use.static class
Cluster properties.static class
Jedis client properties.static class
Lettuce client properties.static class
Pool properties.static class
Redis sentinel properties.static class
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
getHost()
getJedis()
int
getPort()
getSsl()
getUrl()
void
setClientName
(String clientName) void
setClientType
(RedisProperties.ClientType clientType) void
setCluster
(RedisProperties.Cluster cluster) void
setConnectTimeout
(Duration connectTimeout) void
setDatabase
(int database) void
void
setPassword
(String password) void
setPort
(int port) void
setSentinel
(RedisProperties.Sentinel sentinel) void
setTimeout
(Duration timeout) void
void
setUsername
(String username)
-
构造器详细资料
-
RedisProperties
public RedisProperties()
-
-
方法详细资料
-
getDatabase
public int getDatabase() -
setDatabase
public void setDatabase(int database) -
getUrl
-
setUrl
-
getHost
-
setHost
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getSsl
-
setTimeout
-
getTimeout
-
getConnectTimeout
-
setConnectTimeout
-
getClientName
-
setClientName
-
getClientType
-
setClientType
-
getSentinel
-
setSentinel
-
getCluster
-
setCluster
-
getJedis
-
getLettuce
-