Creating redis client using options object without host and port.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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