redis/docs

Conflicting default reconnection behavior in node-redis docs

Closed this issue · 1 comments

I noticed two sections of the documentation describe the default reconnection behavior of node-redis differently:

  1. https://redis.io/docs/latest/develop/clients/nodejs/migration/#reconnection
    it says: By default, node-redis doesn't attempt to reconnect

  2. 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?

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.