redis / redis/node-redis

client.batch is not a function

Open
#1,796 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When updating from v3->v4 I can no longer use the batch() function on the redisClient object.

The migration guide makes no reference of this being unsupported.

setting legacyMode to true does not resolve this.

Environment:

  • Node.js Version: v14" -->
  • Node Redis Version: 4.0.1

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 by reproducing the missing batch() call with Node.js v14 and node-redis 4.0.1, then read the v3-to-v4 migration guide and the legacyMode behavior. Compare the documented and actual client API to determine whether batch() should be supported or documented as unavailable; done means the behavior and migration guidance are consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, redis, typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.