Skip to content

DOC-7335 Add redis-py, redis-rb and node-redis API mappings for ZMOVE, BZMOVE, ZMOVEMEMBER and BACKUP - #4643

Merged
andy-stark-redis merged 1 commit into
mainfrom
DOC-7335-zmove-backup-api-mapping
Nov 23, 2026
Merged

andy-stark-redis merged 1 commit into
mainfrom
DOC-7335-zmove-backup-api-mapping

Conversation

@andy-stark-redis

@andy-stark-redis andy-stark-redis commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Adds API mappings for ZMOVE, BZMOVE and ZMOVEMEMBER (Redis 8.12) and the six BACKUP subcommands (Redis 8.10) to data/command-api-mapping/, and regenerates data/command-api-mapping.json (additions only, +480/-0 with git diff --patience).

Only clients with a stable release that contains the commands are included: redis-py v8.2.0, redis-rb v6.1.0 and node-redis [email protected]. Rows for Jedis, Lettuce, go-redis, Predis and NRedisStack are left out until those clients ship, and will come in a follow-up.

Verified. All 21 signatures were checked by script against the release tags. The redis-py and node-redis calls were run against redis:8.12-rc3 (the redis:8.12.0 image is not on Docker Hub yet). redis-rb was not run.

Related: #4525 (DOC-7292) also regenerates data/command-api-mapping.json, so whichever PR lands second must re-run ./build/merge-command-api-mapping.sh instead of resolving the conflict by hand.

🤖 Generated with Claude Code


Note

Low Risk
Additions-only JSON documentation mappings with no application code or data-plane behavior changes.

Overview
Adds nine new Redis command API mapping files under data/command-api-mapping/ and regenerates the merged data/command-api-mapping.json so docs can show client method signatures.

BACKUP (Redis 8.10): BACKUP ABORT, CLEANUP, LIST, SEAL, START, and STATUS — each maps to redis-py (backup_*) and node-redis (backup*).

Sorted-set moves (Redis 8.12): ZMOVE, BZMOVE, and ZMOVEMEMBER — each maps redis_py, node_redis, and redis_rb with typed params/return shapes (e.g. min/max/byscore, timeout, member nx/xx).

No runtime or tooling logic changes; documentation data only. PR is parked until Redis 8.12 GA and stable client releases.

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

@andy-stark-redis andy-stark-redis added do not merge yet clients Client library docs parked PR speculatively added based on pre-release info. Check validity when release goes ahead. labels Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 7 related items from repository history (2 new this commit):

Memory updated at f047220

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7335

@andy-stark-redis
andy-stark-redis requested a review from a team November 23, 2026 13:19
@andy-stark-redis andy-stark-redis self-assigned this Nov 23, 2026
Base automatically changed from feature-oss-8.12 to main November 23, 2026 14:19
…, BZMOVE, ZMOVEMEMBER and BACKUP

Adds nine per-command files under `data/command-api-mapping/` and regenerates `data/command-api-mapping.json` (additions only: `git diff --patience` shows +480/-0). ZMOVE, BZMOVE and ZMOVEMEMBER have rows for `redis_py`, `redis_rb` and `node_redis`. The six BACKUP subcommands (START, STATUS, LIST, SEAL, ABORT, CLEANUP) have rows for `redis_py` and `node_redis`. The bare `BACKUP` container row is not added.

The PR was parked while Redis 8.12 and the client releases were pending. When it was thawed on 2026-11-23, Redis 8.12.0 was GA and three clients had shipped a stable release containing the commands: redis-py v8.2.0, redis-rb v6.1.0 and node-redis `[email protected]`. Jedis, Lettuce, go-redis, Predis and StackExchange.Redis/NRedisStack had no stable release with them (Jedis, Predis and SE.Redis in no tag at all), so their rows were removed and kept on a local branch at `da52f49e7` rather than waiting weeks for the slowest client. The park-time snapshot held for the three kept clients: redis-rb `sorted_sets.rb` at v6.1.0 and every node-redis command file at `[email protected]` were byte-identical to the snapshot. Only go-redis moved, and it was dropped anyway.

All 21 remaining signatures were checked by script against the release tags, with a checker that was mutation-tested. The redis-py calls were run against `redis:8.12-rc3`, and the node-redis calls (`zMove`, `zMoveMember`, `bzMove`, five `backup*`) against the same image with `[email protected]` installed from npm. The `redis:8.12.0` image was not on Docker Hub yet, and `8.12-rc2` has no ZMOVE. redis-rb was not run.

Learned: a parked PR whose trigger is met for some clients can land those rows now, because the per-client rows in `data/command-api-mapping/*.json` are independent
Constraint: only add a client's row once a non-prerelease tag of that client contains the command, and re-read its signature at that tag
Directive: the dropped rows (Jedis, Lettuce, go-redis, Predis, NRedisStack) live on local branch `DOC-7335-dropped-rows-parked` at `da52f49e7`; re-read them at each client's release tag before reusing them, because go-redis has moved since
Gaps: the redis-rb rows were not run against a server, and the BACKUP rows for go-redis are in the dropped set
Ticket: DOC-7335
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@andy-stark-redis
andy-stark-redis force-pushed the DOC-7335-zmove-backup-api-mapping branch from da52f49 to f047220 Compare November 23, 2026 14:55
@andy-stark-redis andy-stark-redis changed the title DOC-7335 Add API mappings for ZMOVE, BZMOVE, ZMOVEMEMBER and BACKUP [PARKED] DOC-7335 Add redis-py, redis-rb and node-redis API mappings for ZMOVE, BZMOVE, ZMOVEMEMBER and BACKUP Nov 23, 2026
@andy-stark-redis andy-stark-redis removed do not merge yet parked PR speculatively added based on pre-release info. Check validity when release goes ahead. labels Nov 23, 2026

@dwdougherty dwdougherty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

@andy-stark-redis
andy-stark-redis merged commit bd02d1c into main Nov 23, 2026
114 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7335-zmove-backup-api-mapping branch November 23, 2026 15:54
@andy-stark-redis

Copy link
Copy Markdown
Contributor Author

Thanks @dwdougherty !

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

Labels

clients Client library docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants