Skip to content

DOC-7267 Fill the missing ioredis entries from the 5.11.1 declarations - #4512

Merged
andy-stark-redis merged 1 commit into
mainfrom
DOC-7267-ioredis-ruby-gaps
Nov 9, 2026
Merged

andy-stark-redis merged 1 commit into
mainfrom
DOC-7267-ioredis-ruby-gaps

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

The API Methods tab lists ioredis since #4498, but 368 of the 527 commands had an empty or missing ioredis list. Each one is now accounted for against the declared RedisCommander overloads in ioredis 5.11.1, the version #4496 settled on. 225 command files get 444 entries, and 132 commands are recorded as generic_only in the status file, so the tab says to use call. After this, 384 commands have ioredis entries, 132 are generic_only, and 11 are left (see below).

  • 114 commands that name a method (DEL, EXPIRE, the AR and V commands, and so on) take the declared overloads of that method.
  • 111 container subcommands (ACL CAT, CLIENT KILL, CLUSTER ADDSLOTS, FUNCTION LIST, XGROUP and others) take the overloads of the container method whose subcommand literal is theirs.
  • Each list stops at five overloads, the same reach as the existing SET and ZADD entries. Signatures and params are regenerated verbatim from the declaration, returns are the declared Result<T, Context>, and descriptions are empty.
  • generic_only:
    • The 116 module commands (JSON, FT, TS, BF, CF, CMS, TDIGEST, TOPK), because ioredis has no module methods.
    • 6 container subcommands with no typed overload (CLIENT NO-TOUCH, CLIENT SETINFO, CLUSTER MIGRATION, CLUSTER MYSHARDID, CLUSTER SLOT-STATS, CLUSTER SYNCSLOTS).
    • 10 commands with no method (DELEX, DIGEST, TRIMSLOTS, XACKDEL, XCFGSET and the HOTKEYS family).

Review notes

  • Left unchanged: the 10 bare container pages (ACL, CLIENT, CLUSTER, COMMAND, CONFIG, DEBUG, LATENCY, MEMORY, MODULE, SLOWLOG) and MONITOR have no ioredis entry and no status. The container pages have no method of their own, and I wasn't sure what the tab should say. They show the default message.
  • Checked against 6.0.0 too: none of the 132 generic_only commands has a typed overload in ioredis 6.0.0 either, so they aren't wrongly marked.
  • Misleading declaration: ioredis declares five CLUSTER commands (ADDSLOTS, ADDSLOTSRANGE, DELSLOTS, DELSLOTSRANGE, FLUSHSLOTS) with the CLUSTER SLOTS reply type. The entries keep the declared type, and the return description says Redis replies OK. That description is mine.
  • RESTORE-ASKING is declared as ["restore-asking"](...), so its signature is written that way.
  • Only previously empty or missing ioredis lists change, and only the ioredis key in each file, which the script asserted. The merged data/command-api-mapping.json equals a regeneration. Built with content/develop/clients ignored (the full site only builds in CI). DEL, CLIENT KILL and CLUSTER ADDSLOTS show signatures, JSON.GET and HOTKEYS GET say to use call, and ACL shows the default message.
  • Not done: the five-overload cap is a presentation choice, since many methods declare more, plus Buffer variants that aren't listed.

🤖 Generated with Claude Code


Note

Low Risk
Documentation and static JSON data only; no runtime application code or auth paths affected.

Overview
Fills the ioredis gaps on the command API Methods tab by aligning ~368 previously empty commands with ioredis 5.11.1 RedisCommander typings.

data/command-api-mapping-status.json now records ioredis for many commands: typed methods where overloads exist are generic_only only when there is no dedicated API (Redis Stack modules JSON/FT/TS/BF/CF/CMS/TDIGEST/TOPK, a few HOTKEYS/X* commands, and some cluster/client subcommands). Existing entries also gain ioredis": "generic_only" where needed (e.g. cluster/client commands already mapped for other clients).

Per-command JSON under data/command-api-mapping/ gains ioredis arrays (up to five overloads per command) with signatures, params, and Result<T, Context> return types copied from the declarations—covering core commands (DEL, EXPIRE, EVAL), AR*, ACL/CLIENT/CLUSTER/CONFIG/COMMAND subcommands, and similar. Commands without typed ioredis methods rely on status only so the UI directs users to call.

Some cluster mappings keep ioredis’s declared return types even where Redis returns OK (noted in return descriptions for ADDSLOTS-style commands). Bare container pages (ACL, CLIENT, CLUSTER, etc.) and MONITOR are intentionally unchanged.

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

The API Methods tab lists ioredis since #4498, but 368 of the 527 commands had an empty or
missing ioredis list. Each is now accounted for against the declared RedisCommander overloads
in ioredis 5.11.1, the version #4496 settled on. 225 command files get 444 entries, and 132
commands are recorded as generic_only in the status file, so the tab says to use call.

Entries: 114 commands that name a method (DEL, EXPIRE, the AR and V commands and so on) take
the declared overloads of that method, and 111 container subcommands (ACL CAT, CLIENT KILL,
CLUSTER ADDSLOTS, FUNCTION LIST, XGROUP and others) take the overloads of the container method
whose subcommand literal is theirs. Each list stops at five overloads, the same reach as the
existing SET and ZADD entries. Signatures and params are regenerated verbatim from the
declaration, returns are the declared Result<T, Context>, descriptions are empty.

generic_only: the 116 module commands (JSON, FT, TS, BF, CF, CMS, TDIGEST and TOPK) because
ioredis has no module methods, 6 container subcommands with no typed overload (CLIENT NO-TOUCH,
CLIENT SETINFO and four CLUSTER ones), and 10 commands with no method (DELEX, DIGEST, TRIMSLOTS,
XACKDEL, XCFGSET and the HOTKEYS family). Left empty: the 10 bare container pages (ACL, CLIENT,
CLUSTER, COMMAND, CONFIG, DEBUG, LATENCY, MEMORY, MODULE, SLOWLOG) and MONITOR.

Five CLUSTER commands (ADDSLOTS, ADDSLOTSRANGE, DELSLOTS, DELSLOTSRANGE, FLUSHSLOTS) are
declared by ioredis with the CLUSTER SLOTS reply type. The entries keep the declared type and
the return description says Redis replies OK.

Learned: ioredis container commands are one method each, the subcommand is the first parameter literal, so a subcommand entry is the subset of that method's overloads with its literal
Constraint: the reference is ioredis 5.x, a command only 6.x declares would be wrongly generic_only, none of the 368 is one
Directive: do not list ioredis methods the declarations lack, such as module commands, send them with call
Gaps: five overloads per command is a presentation choice, many methods declare more, plus Buffer variants that are not listed
Gaps: the 10 bare container pages and MONITOR have no ioredis entry and no status
Recheck: when the docs move to ioredis 6.x, regenerate and revisit the generic_only commands that 6.x types
Ticket: DOC-7267
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7267

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

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

Memory updated at d401536

andy-stark-redis added a commit that referenced this pull request Nov 9, 2026
…re container pages

Seven ioredis lists held other subcommands' overloads: XGROUP DESTROY, DELCONSUMER, CREATECONSUMER
and SETID, and XINFO STREAM, GROUPS and CONSUMERS. The ioredis cleanup in #4496 kept each
command's existing overload selection, and these lists had been built from the whole xgroup or
xinfo method, so XGROUP DESTROY listed five CREATE overloads and none of its own. The tab
renders the ioredis subcommand as a plain param, so it showed xgroup( subcommand: "CREATE", ...)
on the DESTROY page. Each list now holds only the overloads whose subcommand literal is its own,
24 entries dropped, and the four lists left with none take their overloads from the declaration.
Every ioredis entry for a space-named container command now names that command's subcommand.

The ten remaining empty ioredis pages from #4512 are settled. DEBUG is one method with a free
subcommand string, so it takes the three declared debug overloads. MONITOR is a method of the
Redis class, declared outside RedisCommander as monitor(callback?: Callback<Redis>):
Promise<Redis>, so it gets that entry. The nine bare container pages (ACL, CLIENT, CLUSTER,
COMMAND, CONFIG, LATENCY, MEMORY, MODULE, SLOWLOG) have no method that takes the command without a
subcommand, so ioredis is generic_only for them.

Learned: an ioredis container command is one method, so a subcommand entry has to be filtered by the subcommand literal, and a list that was split from a collapsed entry can hold the wrong ones
Constraint: reference ioredis 5.11.1, DEBUG and MONITOR were checked in RedisCommander.d.ts and Redis.d.ts
Directive: after building ioredis entries for a container subcommand, check that every signature names that subcommand
Gaps: the two descriptions on the MONITOR entry are written by hand, ioredis has none for them
Gaps: nine bare container pages say to use call although the bare command is not useful, the status file has no way to say that
Ticket: DOC-7267
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@andy-stark-redis
andy-stark-redis merged commit 183c877 into main Nov 9, 2026
109 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7267-ioredis-ruby-gaps branch November 9, 2026 15:29
andy-stark-redis added a commit that referenced this pull request Nov 10, 2026
…re container pages

Seven ioredis lists held other subcommands' overloads: XGROUP DESTROY, DELCONSUMER, CREATECONSUMER
and SETID, and XINFO STREAM, GROUPS and CONSUMERS. The ioredis cleanup in #4496 kept each
command's existing overload selection, and these lists had been built from the whole xgroup or
xinfo method, so XGROUP DESTROY listed five CREATE overloads and none of its own. The tab
renders the ioredis subcommand as a plain param, so it showed xgroup( subcommand: "CREATE", ...)
on the DESTROY page. Each list now holds only the overloads whose subcommand literal is its own,
24 entries dropped, and the four lists left with none take their overloads from the declaration.
Every ioredis entry for a space-named container command now names that command's subcommand.

The ten remaining empty ioredis pages from #4512 are settled. DEBUG is one method with a free
subcommand string, so it takes the three declared debug overloads. MONITOR is a method of the
Redis class, declared outside RedisCommander as monitor(callback?: Callback<Redis>):
Promise<Redis>, so it gets that entry. The nine bare container pages (ACL, CLIENT, CLUSTER,
COMMAND, CONFIG, LATENCY, MEMORY, MODULE, SLOWLOG) have no method that takes the command without a
subcommand, so ioredis is generic_only for them.

Learned: an ioredis container command is one method, so a subcommand entry has to be filtered by the subcommand literal, and a list that was split from a collapsed entry can hold the wrong ones
Constraint: reference ioredis 5.11.1, DEBUG and MONITOR were checked in RedisCommander.d.ts and Redis.d.ts
Directive: after building ioredis entries for a container subcommand, check that every signature names that subcommand
Gaps: the two descriptions on the MONITOR entry are written by hand, ioredis has none for them
Gaps: nine bare container pages say to use call although the bare command is not useful, the status file has no way to say that
Ticket: DOC-7267
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis added a commit that referenced this pull request Nov 10, 2026
…re container pages

Seven ioredis lists held other subcommands' overloads: XGROUP DESTROY, DELCONSUMER, CREATECONSUMER and SETID, and XINFO STREAM, GROUPS and CONSUMERS. They had been built from the whole xgroup or xinfo method, so XGROUP DESTROY listed five CREATE overloads and none of its own. Each list now holds only the overloads whose subcommand literal is its own (24 entries dropped), and the four lists left with none take theirs from the declaration. Every ioredis entry for a space-named container command now names that command's subcommand.

The ten empty ioredis pages left by #4512 are settled. DEBUG is one method with a free subcommand string, so it takes the three declared debug overloads. MONITOR is declared on the Redis class, outside RedisCommander, as monitor(callback?: Callback<Redis>): Promise<Redis>, so it gets that entry. The nine bare container pages (ACL, CLIENT, CLUSTER, COMMAND, CONFIG, LATENCY, MEMORY, MODULE, SLOWLOG) have no method that takes the command without a subcommand, so ioredis is generic_only for them.

Learned: an ioredis container command is one method, so a subcommand entry has to be filtered by the subcommand literal, and a list split from a collapsed entry can hold the wrong ones
Constraint: reference ioredis 5.11.1, DEBUG and MONITOR were checked in RedisCommander.d.ts and Redis.d.ts
Directive: after building ioredis entries for a container subcommand, check that every signature names that subcommand
Gaps: the two descriptions on the MONITOR entry are written by hand, and the nine bare container pages say to use call although the bare command is not useful, the status file cannot say that
Ticket: DOC-7267
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants