scala-redis
scala-redis copied to clipboard
detect connection lost to server and reconnect
What is a preferable logic to detect connection lost and reconnect to server?
It seems connected and connect methods aren't working as I expect. Surprisingly, select method works and reconnects to server.
How do I check if connection to server has been lost?
I am using database 1. It looks like RedisClient automatically connects to database 0 when connection to database 1 is lost.