redis / redis/node-redis

Creating redis client using options object without host and port.

Open
#1,420 18 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This code runs without error, even if there is no running local server. Is it correct behavior or a bug?

const redis = require('redis')
const redisClient = redis.createClient({ retry_strategy: () => 1000 })
  • Version: 2.8.
  • Platform: Node.js 10.15.3 Mac OS X Mojave, Node.js 11 alpine, Node.js 10.15.3 alpine
  • Description: Creating redis client using options object without host and port.

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

Reproduce the example using redis.createClient({ retry_strategy: ... }) with redis 2.8 and the stated Node.js environments, including no running local server. Then inspect how the options object is handled and determine whether client creation without a connection should be expected; completion requires a documented conclusion and a regression test if the behavior is a bug.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, redis
Domain
backend, databases
Issue type
Bug
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.