Skip to content
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

Redis error #23

Open
wants to merge 3 commits into
base: 0.9.x
Choose a base branch
from
Open

Redis error #23

wants to merge 3 commits into from

Conversation

danjenkins
Copy link

I was unable to attach an onError handler to the raw redis connection, so when we lost connectivity to redis, the node app would just kick up a fuss, I wanted to be able to deal with that how I wanted. While I was at it, I added the possibility of listening for onReady so that you can also have your own logic for when the connection is ready.

I also made it so that when on error gets called, we pass back the raw connection so that you can say, listen for ready again and know that you've reconnected.

@hongkongkiwi
Copy link

This is fantastic, that was one of my concerns is that if the Redis server went down temporarily it would take our server down with it.

I hope we can merge this into the 0.9 code base !

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

Successfully merging this pull request may close these issues.

2 participants