Class RedisProperties
java.lang.Object
org.springframework.boot.autoconfigure.data.redis.RedisProperties
Configuration properties for Redis.
- Since:
- 1.0.0
- Author:
- Dave Syer, Christoph Strobl, EddĂș MelĂ©ndez, Marco Aust, Mark Paluch, Stephane Nicoll
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getHost()
getJedis()
int
getPort()
getUrl()
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
void
setPassword
(String password) void
setPort
(int port) void
setSentinel
(RedisProperties.Sentinel sentinel) void
setSsl
(boolean ssl) void
setTimeout
(Duration timeout) void
void
setUsername
(String username)
-
Constructor Details
-
RedisProperties
public RedisProperties()
-
-
Method Details
-
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) -
isSsl
public boolean isSsl() -
setSsl
public void setSsl(boolean ssl) -
setTimeout
-
getTimeout
-
getConnectTimeout
-
setConnectTimeout
-
getClientName
-
setClientName
-
getClientType
-
setClientType
-
getSentinel
-
setSentinel
-
getCluster
-
setCluster
-
getJedis
-
getLettuce
-