Skip to content

docs: clarify config tables, fix typos, and align JSDoc examples - #3458

Merged
nkaradzhov merged 1 commit into
redis:masterfrom
codeXsidd:docs/clarify-config-and-fix-typos
Sep 18, 2026
Merged

nkaradzhov merged 1 commit into
redis:masterfrom
codeXsidd:docs/clarify-config-and-fix-typos

Conversation

@codeXsidd

@codeXsidd codeXsidd commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Describe your pull request here


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Note

Low Risk
Documentation and JSDoc-only changes with no runtime or API behavior modifications.

Overview
This PR documents cluster and sentinel options that were already in the client but missing from the guides: keyPrefix, commandOptions, clientSideCache, and (for cluster) topologyRefreshOnReconnectionAttemptStrategy, with links to the key-prefixing, command-options, and v5 caching sections.

It also cleans up docs and comments: relative ./pool.md links instead of GitHub URLs, small copy fixes (ASAP “to send” queue, punctuation), withCommandOptions examples now include timeout, and pool examples call pool.ping() instead of client.

JSDoc on clientSideCache in cluster and sentinel types no longer describes “pooled mode”; examples use createCluster / createSentinel with the required rootNodes / name fields instead of pool-style minimum options.

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

Copilot AI lite review requested due to automatic review settings September 18, 2026 13:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

CLGTM — verified the new cluster rows (keyPrefix, commandOptions, clientSideCache, topologyRefreshOnReconnectionAttemptStrategy) and sentinel rows against the current types, and the rewritten JSDoc examples correctly drop the bogus top-level minimum (pool-only) and add the required root-node fields. The docs/ links are right to be relative — absolute GitHub URLs are only the convention in the npm-published READMEs, which this PR doesn't touch.

Optional nit, not blocking: the pool.md example no longer demonstrates type mapping — could restore as pool.withTypeMapping(...).ping() to keep that coverage.

@nkaradzhov
nkaradzhov merged commit c6481b4 into redis:master Sep 18, 2026
40 of 41 checks passed
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.

3 participants