-
Notifications
You must be signed in to change notification settings - Fork 118
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
Don't crash the app if Redis is unavailable on start #84
Comments
Apart from not crashing the app on start, it shouldn't cause a crash if redis becomes unavailable on runtime. After digging into the code I think @rv-kip what do you think abt this adjustment? |
Let's aim to have this for v2.0.0 |
Maybe I'm misreading the issues that earlier posters have, but I encountered this and solved it, simply by ensuring that I included:
The error listener seems to be required; without it, the application fails at startup. Perhaps this just needs to be clarified in the documentation? |
I don't get any error on startup and I don't have such an event listener defined. |
SassNinja look at Kryten0807 comment |
Seems another redis package was also crashing the app when it became unavailable. I can confirm it's working as described by @Kryten0807 However I agree the docs should be clearer and mention this. |
Just like cache.route() doesn't crash the app if the Redis instance becomes unavailable, the instantiation of the cache should not crash the app if Redis is unavailable at the time of creation.
The text was updated successfully, but these errors were encountered: