Compare commits
2 Commits
9d43b8e23a
...
f658df4dca
| Author | SHA1 | Date | |
|---|---|---|---|
| f658df4dca | |||
| 5c7bf8086c |
@@ -32,13 +32,13 @@ class RedisConfig(
|
|||||||
val clusterConfig = RedisClusterConfiguration()
|
val clusterConfig = RedisClusterConfiguration()
|
||||||
clusterConfig.clusterNode(host, port)
|
clusterConfig.clusterNode(host, port)
|
||||||
|
|
||||||
|
val clientOptions = ClientOptions.builder()
|
||||||
|
.pingBeforeActivateConnection(true)
|
||||||
|
.autoReconnect(true)
|
||||||
|
.build()
|
||||||
|
|
||||||
val clientConfig = LettuceClientConfiguration.builder()
|
val clientConfig = LettuceClientConfiguration.builder()
|
||||||
.clientOptions(
|
.clientOptions(clientOptions)
|
||||||
ClientOptions.builder()
|
|
||||||
.pingBeforeActivateConnection(true)
|
|
||||||
.autoReconnect(true)
|
|
||||||
.build()
|
|
||||||
)
|
|
||||||
.commandTimeout(Duration.ofSeconds(5))
|
.commandTimeout(Duration.ofSeconds(5))
|
||||||
.shutdownTimeout(Duration.ofSeconds(5))
|
.shutdownTimeout(Duration.ofSeconds(5))
|
||||||
.useSsl()
|
.useSsl()
|
||||||
|
|||||||
Reference in New Issue
Block a user