Class RedisProperties
java.lang.Object
org.springframework.boot.data.redis.autoconfigure.RedisProperties
Configuration properties for Redis.
- Since:
- 4.0.0
- Author:
- Dave Syer, Christoph Strobl, EddĂș MelĂ©ndez, Marco Aust, Mark Paluch, Stephane Nicoll, Scott Frederick, Yanming Zhou
-
Nested Class Summary
Nested ClassesModifier 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.static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable RedisProperties.ClientType
@Nullable RedisProperties.Cluster
@Nullable Duration
int
getHost()
getJedis()
@Nullable String
int
getPort()
@Nullable RedisProperties.Sentinel
getSsl()
@Nullable Duration
@Nullable String
getUrl()
@Nullable String
void
setClientName
(@Nullable String clientName) void
setClientType
(@Nullable RedisProperties.ClientType clientType) void
setCluster
(@Nullable RedisProperties.Cluster cluster) void
setConnectTimeout
(@Nullable Duration connectTimeout) void
setDatabase
(int database) void
void
setPassword
(@Nullable String password) void
setPort
(int port) void
setSentinel
(@Nullable RedisProperties.Sentinel sentinel) void
setTimeout
(@Nullable Duration timeout) void
void
setUsername
(@Nullable 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) -
getSsl
-
getTimeout
-
setTimeout
-
getConnectTimeout
-
setConnectTimeout
-
getClientName
-
setClientName
-
getClientType
-
setClientType
-
getSentinel
-
setSentinel
-
getCluster
-
setCluster
-
getJedis
-
getLettuce
-