Skip to content

How to change redis connection while it's working? #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rebulanyum opened this issue Sep 25, 2018 · 2 comments
Open

How to change redis connection while it's working? #252

rebulanyum opened this issue Sep 25, 2018 · 2 comments

Comments

@rebulanyum
Copy link
Contributor

Hello @MichaCo .

I was wondering if it's possible to change the redis backplane while using the CacheManager? Suppose that the CacheManager instance is a static readonly instance in my code. And I'm using that instance with specific redis backplane configuration (ip, port, password, dbid). What if I wanted to change the password? Or, what if I wanted to change the ip&port (I may prefer to change the redis instance for caching) or even dbid? Can I make these changes on CacheManager while not wiping out the local inmemory cache but only wiping out redis backplane?

Best regards.

@MichaCo
Copy link
Owner

MichaCo commented Sep 25, 2018

Hi @rebulanyum,
Great question.
CacheManager currently doesn't support any feature to re-configure the Redis connection.
Although there is already a wrapper around the Multiplexer object, I never added that as a feature.
For the backplane, that might be a little bit more tricky because of the long running "subscribe" connection.

But yeah, would be a good addition, I'll add that as a feature request.

@MichaCo MichaCo added this to the Future milestone Nov 15, 2018
@p3365
Copy link

p3365 commented Feb 8, 2019

This may be a blocker stopping my organisation using Cache Manager. Our web application is a long running application and downtime is expensive for our customers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants