Skip to content

DOC-7292 Add API mappings for the new Redis 8.12 commands - #4525

Merged
andy-stark-redis merged 2 commits into
mainfrom
DOC-7292-8-12-command-api-mapping
Nov 23, 2026
Merged

andy-stark-redis merged 2 commits into
mainfrom
DOC-7292-8-12-command-api-mapping

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Adds data/command-api-mapping/ entries (15 files) for the commands new in Redis 8.12, and regenerates data/command-api-mapping.json (additions only; git diff --patience shows +8,516/-0).

Commands: BITRANGEINTARRAY; SADDEX, SEXPIRE, SPEXPIRE, SEXPIREAT, SPEXPIREAT, STTL, SPTTL, SEXPIRETIME, SPEXPIRETIME, SPERSIST; BLESS SET/CLEAR/GET/SCAN.

Warning

Do not merge yet. This PR documents client APIs that are on the clients' default branches but in no stable release. Base is feature-oss-8.12 (the 8.12 release branch), not main.

Run-verified on redis:8.12-rc2 (reports redis_version:8.11.241, the rc2 string), 2026-11-10. Every mapped signature was called as written against the default branch of its client and returned the expected value: redis-py 509306fc7325, go-redis 9f33ff11dff1, node-redis be1e998a653d, redis-rb cadebe5d2c5e, predis 1685693b83ef, Jedis c701a365ab46, lettuce 62e6e6e7010b (sync, async and reactive). 320 overload rows passed, with no mismatches. Notes: node-redis blessScan needs a string cursor ('0'), and SADDEX replies 1 for any successful call, not a member count.


Note

Low Risk
Documentation-only JSON for API mapping tables; no runtime or auth changes.

Overview
Adds 15 per-command API mapping files under data/command-api-mapping/ and regenerates the merged data/command-api-mapping.json so command docs can show client library call shapes for Redis 8.12 commands.

New mappings cover bit-array introspection (BITRANGEINTARRAY), BLESS (SET, CLEAR, GET, SCAN), set member TTL (SADDEX, SEXPIRE/SPEXPIRE, SEXPIREAT/SPEXPIREAT, SEXPIRETIME/SPEXPIRETIME, STTL/SPTTL, SPERSIST), each with signatures for redis-py, node-redis, and redis-rb where applicable.

FT.HYBRID is updated to document redis-py's new optional explain_score argument on hybrid_search.

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

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

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7292

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 9 related items from repository history (4 new this commit):

Memory updated at 6c42950

andy-stark-redis and others added 2 commits November 23, 2026 16:05
Adds data/command-api-mapping/ entries for BITRANGEINTARRAY, SADDEX,
SEXPIRE, SPEXPIRE, SEXPIREAT, SPEXPIREAT, STTL, SPTTL, SEXPIRETIME,
SPEXPIRETIME, SPERSIST and BLESS SET/CLEAR/GET/SCAN (15 files), and
regenerates data/command-api-mapping.json (additions only).

Signatures were read from each client's default branch on 2026-11-10, not
from a release. None of these APIs is in a stable release yet, so this PR is
parked until the clients ship (see the park manifest).

Per-client state on 2026-11-10:
- redis_py: all 15 typed on master; in v8.2.0b1 except BITRANGEINTARRAY;
  none in v8.1.0 (latest stable).
- node_redis: all 15; only BLESS confirmed shipped (6.3.1, 6.4.0-beta.0).
- go-redis, redis_rb: all 15 on master, none in v9.23.0 / v6.0.0.
- php (predis): BLESS shipped in 3.7.1; set expiry on main only (#1749);
  BITRANGEINTARRAY only in open PR #1754, so it is NOT mapped.
- jedis: 14 on master (BLESS #4773, set expiry #4828), none in v8.1.0-beta2;
  BITRANGEINTARRAY only in open PR #4830, NOT mapped.
- lettuce: all 15 on main (BITRANGEINTARRAY #3992 merged 2026-11-09), none in
  a tag.
- nredisstack/SE.Redis and redis-rs: nothing on the default branch, so no
  entries. SE.Redis has the work on its 8.12 branch behind SER011.

Learned:
- The 2026-11-07 PR scan was already stale for lettuce and jedis; re-read the
  default branch rather than trusting the scan.
- git's default diff of the regenerated merged file shows ~44k changed lines
  for what is an 8.5k-line pure addition; check with `git diff --patience`.
- Several upstream tests gate these commands at 8.11.x while the commands ship
  in 8.12 (redis-py 8.11.240, predis 8.11.0); not a docs problem, but do not
  copy those gates.
- go-redis BlessScan is node-local (cursor), and node_redis BLESS SCAN returns
  a transformed {cursor, keys} object; descriptions are left empty.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…in_score

Unpark reconciliation for the mappings parked on 2026-11-10. Three clients now have a
stable release containing the new Redis 8.12 commands: node-redis 6.4.0, redis-py 8.2.0
and redis-rb 6.1.0. This keeps only those three clients' rows in the 15 new mapping files
(BITRANGEINTARRAY, the four BLESS subcommands and the ten set member expiration
commands) and drops the rows for jedis, lettuce, go-redis and php. The branch is rebuilt
as a single commit on current main, because the original history sat on the old 8.12
branch that main already contains as a squash.

Every kept signature was compared with the release source: redis-py by parsing core.py at
v8.2.0, redis-rb by reading the method definitions at v6.1.0, node-redis by reading each
command's parseCommand and the registered method names at [email protected]. All 15 commands
match for all three clients. Each client was then called against a redis:8.12-rc3 server
and every command worked, including the node-redis BLESS SCAN object reply, which the
mapping row already records.

The same pass added the one signature change that arrived in these releases:
redis-py 8.2.0 adds explain_score to FT.HYBRID hybrid_search. The mapping now has the
parameter, and a live call with explain_score set returns an extra score_explain field on
each row. node-redis needed nothing there because EXPLAINSCORE is a field of the existing
options object, and redis-rb 6.1.0 has no support yet.

The merge-commit ancestor test in the park manifest gave a false negative for redis-py:
v8.2.0 is cut from a branch with cherry-picks, so the PR merge commit reads as diverged
even though the release contains the code. The file contents at the tag are the reliable
check there.

Learned: a release cut from a cherry-pick branch fails the merge-commit ancestor test, so confirm the code at the tag itself
Learned: the first entry of a repo's release list is not always its latest stable release, so ask for the latest release directly
Directive: the original rows for jedis, lettuce, go-redis and php are in commit 85470f0 on the old branch tip, so restore them per client when that client ships instead of remapping
Directive: go-redis renamed its BITRANGEINTARRAY API in go-redis PR 4277, so re-read that signature at the release tag before restoring it
Gaps: ZMOVE rows for go-redis and SE.Redis, SE.Redis and NRedisStack rows, and the redis_py and php signature style against older files such as HEXPIRE.json are not covered
Recheck: when jedis, lettuce, go-redis or predis ship a release containing these commands, add their rows
Ticket: DOC-7292
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@andy-stark-redis
andy-stark-redis force-pushed the DOC-7292-8-12-command-api-mapping branch from 85470f0 to 6c42950 Compare November 23, 2026 16:09
@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
@andy-stark-redis andy-stark-redis changed the title DOC-7292 Add API mappings for the new Redis 8.12 commands [PARKED] DOC-7292 Add API mappings for the new Redis 8.12 commands Nov 23, 2026
@andy-stark-redis
andy-stark-redis merged commit fa4bb96 into main Nov 23, 2026
114 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7292-8-12-command-api-mapping branch November 23, 2026 16:25
andy-stark-redis added a commit that referenced this pull request Nov 25, 2026
Predis 3.8.0 (2026-11-23) adds typed methods for the 8.12 set member
expiration commands, BITRANGEINTARRAY, ZMOVE, BZMOVE and ZMOVEMEMBER.
DOC-7292 (#4525) landed only released clients, so these 14 files had no
php entry. Signatures come from the @method docblocks in
src/ClientInterface.php at v3.8.0, kept verbatim (nullable `?string`
types, `SADDEX::COND_NULL` defaults), per the php quirks in the
command-api-mapping skill. Descriptions are empty.

Not verified: the semantics of bitrangeintarray's `$index` parameter
(read as the BYTE/BIT unit); only the signature was taken from source.

Learned:
- build/merge-command-api-mapping.sh calls mktemp without honoring the
  sandbox TMPDIR; run it unsandboxed or the merged file silently stays
  stale while the script prints no error to a redirected stream.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis added a commit that referenced this pull request Nov 25, 2026
…4661)

Adds a `php` entry to the 14 per-command mapping files for the Redis 8.12
commands that Predis 3.8.0 (2026-11-23) supports: the ten set member
expiration commands from SADDEX to STTL, BITRANGEINTARRAY, ZMOVE, BZMOVE and
ZMOVEMEMBER. DOC-7292 (#4525) landed only released clients, so these files
had no Predis entry. data/command-api-mapping.json is regenerated and only
gains lines.

Signatures are the @method docblocks in src/ClientInterface.php at v3.8.0,
kept verbatim, including nullable `?string` types and defaults such as
`SADDEX::COND_NULL`. Descriptions are empty. The `$index` argument of
bitrangeintarray is the BYTE/BIT unit: BITRANGEINTARRAY.php upper-cases
argument 4 and appends it unchanged.

Main moved while the PR was open (DOC-7348 added go-redis entries to the same
files), so the branch was rebuilt on main by re-running the generator rather
than hand-merging JSON.

Learned: build/merge-command-api-mapping.sh calls mktemp without the sandbox TMPDIR, so run it unsandboxed or the merged file silently stays stale
Directive: when these files conflict on rebase, take main's version and regenerate the php entries instead of merging JSON by hand
Gaps: descriptions are empty and only the signatures were checked against source; the commands were not run through Predis here, the example PRs DOC-7345 to DOC-7347 do that
Ticket: DOC-7344
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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