Skip to content
New issue

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

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

Already on GitHub? # to your account

Add support for listening of connection state changes #9

Closed
seigert-xx opened this issue Sep 6, 2013 · 0 comments
Closed

Add support for listening of connection state changes #9

seigert-xx opened this issue Sep 6, 2013 · 0 comments
Milestone

Comments

@seigert-xx
Copy link

In our project we use password-protected Redis instance for writing.

Right after RedisClient creation it is more or less trivial to AUTH to it (and SELECT if it is needed), but if connection was lost afterwards, Rediscala do not provide any useful info about reconnection and also do not store AUTH data in connector actor to authentificate itself automatically.

Thus if we want to re-authenticate ourselves we need to either check Future's failures for "ERR Operation not permitted" messages or parse logs.

I think it would be very useful to provide some form of callback or listener to connection state changes. Also, it could be useful (but not too secure) to store last used AUTH and SELECT data to auto exec them right after reconnection.

@etaty etaty closed this as completed in 9e883d5 Sep 14, 2013
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant