redis / redis/node-redis

node-redis Does retry_strategy have a default value?

Open
#1,586 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
17.6k
Forks
2k
Avg merge
2d 3h
Merged PRs (30d)
40

Description

Redis connection was valid even when redis-server was stopped and restarted without the retry_strategy option.

const conn = redis.createClient({
host: 'redisUrl',
port: 'redisPort',
...
socket_keepalive : true
});

redisClient.on('connect', () => {
console.log(connect);
}).on('error', () => {
console.log(error);
});
Why?

https://stackoverflow.com/questions/66666210/node-redis-does-retry-strategy-have-a-default-value

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the createClient entry point and the retry_strategy behavior described in the issue. Reproduce the stop-and-restart scenario using the shown configuration, then check the client documentation and connection handling to establish whether a default exists. Done when the default behavior is confirmed and documented clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, redis, typescript
Domain
databases
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.