-
My project need to refresh redis nodes manually when redis config changed(we already enable periodic refresh also). The follow is my answer, but there maybe some wrong:
|
Beta Was this translation helpful? Give feedback.
Answered by
mp911de
May 15, 2023
Replies: 1 comment 1 reply
-
When destroying the connection factory, you no longer can submit tasks. If you need to swap out the connection factories, I suggest implementing the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
carresia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When destroying the connection factory, you no longer can submit tasks. If you need to swap out the connection factories, I suggest implementing the
RedisConnectionFactory
interface and delegating to an activeLettuceConnectionFactory
instead of destroying the top-level object.