Class DataRedisProperties
java.lang.Object
org.springframework.boot.data.redis.autoconfigure.DataRedisProperties
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 enumType of Redis client to use.static classCluster properties.static classJedis client properties.static classLettuce client properties.static classListener properties.static classMaster Replica properties.static classPool properties.static classRecovery properties.static classRedis sentinel properties.static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String@Nullable DataRedisProperties.ClientType@Nullable DataRedisProperties.Cluster@Nullable DurationintgetHost()getJedis()@Nullable DataRedisProperties.Masterreplica@Nullable StringintgetPort()@Nullable DataRedisProperties.SentinelgetSsl()@Nullable Duration@Nullable StringgetUrl()@Nullable StringvoidsetClientName(@Nullable String clientName) voidsetClientType(@Nullable DataRedisProperties.ClientType clientType) voidsetCluster(@Nullable DataRedisProperties.Cluster cluster) voidsetConnectTimeout(@Nullable Duration connectTimeout) voidsetDatabase(int database) voidvoidsetMasterreplica(@Nullable DataRedisProperties.Masterreplica masterreplica) voidsetPassword(@Nullable String password) voidsetPort(int port) voidsetSentinel(@Nullable DataRedisProperties.Sentinel sentinel) voidsetTimeout(@Nullable Duration timeout) voidvoidsetUsername(@Nullable String username)
-
Constructor Details
-
DataRedisProperties
public DataRedisProperties()
-
-
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
-
getMasterreplica
-
setMasterreplica
-
getJedis
-
getLettuce
-
getListener
-