Conflicting default reconnection behavior in node-redis docs
Closed this issue · 1 comments
CSenshi commented
I noticed two sections of the documentation describe the default reconnection behavior of node-redis differently:
-
https://redis.io/docs/latest/develop/clients/nodejs/migration/#reconnection
it says:By default, node-redis doesn't attempt to reconnect -
https://redis.io/docs/latest/develop/clients/nodejs/connect/#reconnect-after-disconnection
it says:By default, it will retry the connection using an exponential backoff strategy
Which once is correct?
andy-stark-redis commented
Hi @CSenshi ! Thanks for spotting this - it looks like the migration guide was wrong and the default behaviour for node-redis is to reconnect automatically. I've made a PR for the fix and it should be merged later today after a review.