sorccu / r2d2-redis

MIT License
101 stars 42 forks source link

What is the best way to check whether the connection is alive or not? #18

Open j4in opened 6 years ago

badboy commented 6 years ago

redis-rs now has an is_open check. We should probably update r2d2-redis to use that now. r2d2 provides is_valid and has_broken on the ManageConnection.

There should be rarely a need for your own code to care about that though.