Repository navigation
DOC-7267 Fill the missing ioredis entries from the 5.11.1 declarations - #4512
Merged
Merged
Conversation
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]>
Contributor
Contributor
🧠 Redis MemoryFound 5 related items from repository history (5 new this commit):
Memory updated at d401536 |
dwdougherty
approved these changes
Nov 9, 2026
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
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]>
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.
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
RedisCommanderoverloads in ioredis 5.11.1, the version #4496 settled on. 225 command files get 444 entries, and 132 commands are recorded asgeneric_onlyin the status file, so the tab says to usecall. After this, 384 commands have ioredis entries, 132 aregeneric_only, and 11 are left (see below).Result<T, Context>, and descriptions are empty.generic_only:Review notes
generic_onlycommands has a typed overload in ioredis 6.0.0 either, so they aren't wrongly marked.["restore-asking"](...), so its signature is written that way.data/command-api-mapping.jsonequals a regeneration. Built withcontent/develop/clientsignored (the full site only builds in CI). DEL, CLIENT KILL and CLUSTER ADDSLOTS show signatures, JSON.GET and HOTKEYS GET say to usecall, and ACL shows the default message.Buffervariants 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
RedisCommandertypings.data/command-api-mapping-status.jsonnow records ioredis for many commands: typed methods where overloads exist aregeneric_onlyonly 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 gainioredis": "generic_only"where needed (e.g. cluster/client commands already mapped for other clients).Per-command JSON under
data/command-api-mapping/gainsioredisarrays (up to five overloads per command) with signatures, params, andResult<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 tocall.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.