Merge pull request 'Redis connection' (#237) from test into main
Reviewed-on: #237
This commit is contained in:
commit
f658df4dca
|
@ -32,13 +32,13 @@ class RedisConfig(
|
|||
val clusterConfig = RedisClusterConfiguration()
|
||||
clusterConfig.clusterNode(host, port)
|
||||
|
||||
val clientConfig = LettuceClientConfiguration.builder()
|
||||
.clientOptions(
|
||||
ClientOptions.builder()
|
||||
val clientOptions = ClientOptions.builder()
|
||||
.pingBeforeActivateConnection(true)
|
||||
.autoReconnect(true)
|
||||
.build()
|
||||
)
|
||||
|
||||
val clientConfig = LettuceClientConfiguration.builder()
|
||||
.clientOptions(clientOptions)
|
||||
.commandTimeout(Duration.ofSeconds(5))
|
||||
.shutdownTimeout(Duration.ofSeconds(5))
|
||||
.useSsl()
|
||||
|
|
Loading…
Reference in New Issue