Repository navigation
DOC-7292 Add API mappings for the new Redis 8.12 commands - #4525
Merged
Merged
Conversation
Contributor
Contributor
🧠 Redis MemoryFound 9 related items from repository history (4 new this commit):
Memory updated at 6c42950 |
This was referenced Nov 10, 2026
dwdougherty
approved these changes
Nov 10, 2026
10 tasks
11 tasks
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
force-pushed
the
DOC-7292-8-12-command-api-mapping
branch
from
November 23, 2026 16:09
85470f0 to
6c42950
Compare
This was referenced Nov 24, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
data/command-api-mapping/entries (15 files) for the commands new in Redis 8.12, and regeneratesdata/command-api-mapping.json(additions only;git diff --patienceshows +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), notmain.Run-verified on
redis:8.12-rc2(reportsredis_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-redisblessScanneeds a string cursor ('0'), andSADDEXreplies1for 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 mergeddata/command-api-mapping.jsonso 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.HYBRIDis updated to document redis-py's new optionalexplain_scoreargument onhybrid_search.Reviewed by Cursor Bugbot for commit 6c42950. Bugbot is set up for automated code reviews on this repo. Configure here.