Skip to content

DOC-7344 Add Predis (php) API mappings for the Redis 8.12 commands - #4661

Merged
andy-stark-redis merged 1 commit into
mainfrom
DOC-7344-predis-8-12-mappings
Nov 25, 2026
Merged

andy-stark-redis merged 1 commit into
mainfrom
DOC-7344-predis-8-12-mappings

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Adds a php entry to the 14 per-command mapping files for the Redis 8.12 commands that Predis 3.8.0 (released 2026-11-23) now supports: SADDEX, SEXPIRE, SEXPIREAT, SEXPIRETIME, SPERSIST, SPEXPIRE, SPEXPIREAT, SPEXPIRETIME, SPTTL, STTL, BITRANGEINTARRAY, ZMOVE, BZMOVE and ZMOVEMEMBER. data/command-api-mapping.json is regenerated and only gains lines.

Signatures come from the @method docblocks in src/ClientInterface.php at v3.8.0, kept verbatim. Descriptions are empty, as for other PHP entries. Follows #4525 (DOC-7292), which landed only released clients.

bitrangeintarray's $index parameter is the BYTE/BIT unit: BITRANGEINTARRAY.php at v3.8.0 upper-cases it and appends it as-is.

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only JSON additions with no executable logic; risk is limited to incorrect API signatures in docs.

Overview
Adds PHP (Predis) api_calls entries for 14 Redis 8.12 commands across the per-command mapping files under data/command-api-mapping/, then regenerates the merged data/command-api-mapping.json.

Coverage spans set-member TTL/persist helpers (SADDEX, SEXPIRE*, SPEXPIRE*, SPERSIST, STTL, SPTTL, etc.), bit-array reads (BITRANGEINTARRAY), and sorted-set move APIs (ZMOVE, BZMOVE, ZMOVEMEMBER). Each new block records method signature, params, and returns with empty descriptions, matching existing PHP rows elsewhere.

Signatures are taken verbatim from Predis 3.8.0 ClientInterface @method docblocks; no runtime or client code changes.

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

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7344

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 6 related items from repository history (1 new this commit):

Memory updated at bb24b78

@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.

Skimmed & LGTM.

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
andy-stark-redis force-pushed the DOC-7344-predis-8-12-mappings branch from 7cac311 to bb24b78 Compare November 25, 2026 09:43
@andy-stark-redis
andy-stark-redis merged commit 9f28c12 into main Nov 25, 2026
116 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7344-predis-8-12-mappings branch November 25, 2026 09:54
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