Skip to content

feat: add LMOVEM and BLMOVEM command support - #2144

Merged
PavelPashov merged 2 commits into
redis:mainfrom
PavelPashov:feat/add-lmovem-blmovem
Jul 29, 2026
Merged

PavelPashov merged 2 commits into
redis:mainfrom
PavelPashov:feat/add-lmovem-blmovem

Conversation

@PavelPashov

@PavelPashov PavelPashov commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Note

Low Risk
Additive Redis command support with targeted blocking-timeout logic and tests; no changes to auth, security, or existing command behavior beyond the new APIs.

Overview
Adds client support for Redis LMOVEM and BLMOVEM (multi-element list moves), including typed lmovem / blmovem (and buffer variants) and return types of string[] | null.

BLMOVEM is registered as a blocking command. Timeout parsing uses the fifth argument (not the last), so COUNT / EXACTLY / OBO / BULK trailing options do not break blockingTimeout or stall recovery.

Bumps @ioredis/commands to 2.0.0 for command metadata. Coverage includes functional tests (Redis 8.9+), unit tests for timeout extraction, typing tests, and a blocking-timeout scenario with trailing options.

Reviewed by Cursor Bugbot for commit bbf16f0. Bugbot is set up for automated code reviews on this repo. Configure here.

@PavelPashov
PavelPashov force-pushed the feat/add-lmovem-blmovem branch from 248a1ce to 7be8f68 Compare July 21, 2026 14:18
@PavelPashov
PavelPashov marked this pull request as ready for review July 28, 2026 13:35
@PavelPashov
PavelPashov force-pushed the feat/add-lmovem-blmovem branch from 803746c to bbf16f0 Compare July 29, 2026 09:03

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bbf16f0bdd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

let redis: Redis;

before(async function () {
if (await isRedisVersionLowerThan("8.9")) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate LMOVEM tests on Redis 8.10

This guard lets the new LMOVEM functional tests run on Redis 8.9, but the generated command metadata added in this change marks LMOVEM/BLMOVEM as available since 8.10.0. In any local or CI job pointed at a pre-8.10 server that is not lower than 8.9, these tests will issue an unknown command instead of skipping; the matching BLMOVEM guard should be raised as well.

Useful? React with 👍 / 👎.

@PavelPashov
PavelPashov merged commit c26af46 into redis:main Jul 29, 2026
42 of 43 checks passed
@PavelPashov
PavelPashov deleted the feat/add-lmovem-blmovem branch July 29, 2026 09:20
github-actions Bot pushed a commit that referenced this pull request Jul 29, 2026
# [6.0.0-beta.1](v5.11.1...v6.0.0-beta.1) (2026-07-29)

* Add RESP3 ([#2127](#2127)) ([5d0862e](5d0862e))

### Bug Fixes

* clear stale socket timeout on reconnect ([#2148](#2148)) ([6455dbe](6455dbe))
* **cluster:** recreate stale connection on circular MOVED ([#2135](#2135)) ([08c8967](08c8967))
* **cluster:** validate MOVED slot to prevent Array.prototype pollution ([#2151](#2151)) ([9618206](9618206)), closes [#1267](#1267)
* **command:** serialize large integer arguments in decimal notation ([#2136](#2136)) ([09b8d04](09b8d04))
* **redis:** keep reconnecting when connection closes during client setup ([#2099](#2099)) ([#2123](#2123)) ([f9a66bc](f9a66bc))
* **sentinel:** preserve zero preferred slave priority ([#2129](#2129)) ([a3f9f2d](a3f9f2d))
* **tracing:** redact values for GETSET and PSETEX ([#2134](#2134)) ([832765d](832765d))

### Features

* add LMOVEM and BLMOVEM command support ([#2144](#2144)) ([c26af46](c26af46))
* add Redis 8.10 set cardinality commands ([#2143](#2143)) ([301099b](301099b))
* support MAXCOUNT and MAXSIZE for stream reads ([#2142](#2142)) ([ae5e41b](ae5e41b))

### BREAKING CHANGES

* ioredis now requires Node.js 20 or newer and uses RESP3 by default. Set `protocol: 2` to retain the v5 wire protocol.
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions Bot pushed a commit that referenced this pull request Jul 31, 2026
# [6.0.0](v5.11.1...v6.0.0) (2026-07-31)

* Add RESP3 ([#2127](#2127)) ([5d0862e](5d0862e))

### Bug Fixes

* clear stale socket timeout on reconnect ([#2148](#2148)) ([6455dbe](6455dbe))
* **cluster:** recreate stale connection on circular MOVED ([#2135](#2135)) ([08c8967](08c8967))
* **cluster:** validate MOVED slot to prevent Array.prototype pollution ([#2151](#2151)) ([9618206](9618206)), closes [#1267](#1267)
* **command:** serialize large integer arguments in decimal notation ([#2136](#2136)) ([09b8d04](09b8d04))
* **redis:** keep reconnecting when connection closes during client setup ([#2099](#2099)) ([#2123](#2123)) ([f9a66bc](f9a66bc))
* **sentinel:** preserve zero preferred slave priority ([#2129](#2129)) ([a3f9f2d](a3f9f2d))
* **tracing:** redact values for GETSET and PSETEX ([#2134](#2134)) ([832765d](832765d))
* **types:** export ScanStreamOptions, RedisStatus and ClusterStatus ([#2158](#2158)) ([cf3bf71](cf3bf71))

### Features

* add LMOVEM and BLMOVEM command support ([#2144](#2144)) ([c26af46](c26af46))
* add Redis 8.10 set cardinality commands ([#2143](#2143)) ([301099b](301099b))
* himport managed fieldsets ([#2159](#2159)) ([729f174](729f174))
* improve default connection resilience ([#2160](#2160)) ([6d0716e](6d0716e))
* support MAXCOUNT and MAXSIZE for stream reads ([#2142](#2142)) ([ae5e41b](ae5e41b))

### BREAKING CHANGES

* ioredis now requires Node.js 20 or newer and uses RESP3 by default. Set `protocol: 2` to retain the v5 wire protocol.
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants