Set the maximum reconnect delay REDIS URI #2172
Unanswered
Pramit2512
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are replacing the MEMCACHED usage in our application with REDIS .
In memcached we have following code to set up timeouts:
where
setMaxReconnectDelay(value) - Sets the maximum amount of time we ever wait between reconnect attempts (in ms)
setOpTimeout(value) -Sets the default operation timeout in milliseconds
In similar way I am trying to set up these timeouts using Lettuce (redis uri):
I have used
.withTimeout(Duration.ofMillis(timeout))
and
source.setTimeout(Duration.ofMillis(timeout));
I am still confused what these above two timeout do. I tried searching it online ,but could not find anything. Are these both same things ?
Can these be used to setOpTimeout() & setMaxReconnectDelay() in RedisURI? If not what are the exact commands to setup up those?
Thankyou
Beta Was this translation helpful? Give feedback.
All reactions