-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Make redis and redis cache work with connection pool #910
Conversation
It was trying to use the redis adapter instead of the redis-rb stuff. This forces it to the top namespace.
Might as well add default just to make it easier for people to get going.
@jnunemaker nice, thanks! Any chance of a new release soonish? |
Yes. Trying to get a couple more fixes in now. |
@jnunemaker great news! Keep us posted so we can update and then I can remove this code that I have been using in the meantime:
Just out of curiosity, have people requested pooling for adapter other than Redis? If so you can probably just make clients for all adapters a pool with a default size of 1 to mimic current behavior. |
@jnunemaker This looks great! I appreciate the straightforward approach and look forward to using it. Thanks for working on this. |
looks nice and clean. I have created a todo in our internally to use this adapter. I will report back once I have enough data. Thank you @jnunemaker! |
About to use this in production 😄 |
🔥 in the 🕳️ !!! |
This makes it so redis and redis cache work with a redis instance or a connection pool instance that generates redis instances.
@cymen @j-castellanos @maleksiuk @BilalBudhani @tanelsuurhans @gstokkink Any thoughts on this? Seems like it'll just work.
refs #826, #839, #835
To Use
All you need to do is configure your adapter:
If you're using redis cache, it's the same thing but pass connetion pool instance for cache instead of redis instance.