-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Clustering sendCommand docs #3053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We noticed that `sendCommand()` takes different arguments for clusters vs clients, and I wanted to document the differences. I think I got it correct, but please review closely just to be sure. It might also be worth adding a note to [the readme](https://github.com/redis/node-redis/blob/2f106324507eec905b8fe7691ba11179acdeeca7/README.md#L136-L144) also, since this is a somewhat unexpected difference, what do you think? Relates to express-rate-limit/rate-limit-redis#207 & express-rate-limit/rate-limit-redis#208
@@ -38,6 +38,25 @@ await cluster.close(); | |||
| scripts | | Script definitions (see [Lua Scripts](./programmability.md#lua-scripts)) | | |||
| functions | | Function definitions (see [Functions](./programmability.md#functions)) | | |||
|
|||
## Usage | |||
|
|||
Most redis commands are the same as with individual clients. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this is true. Are there other differences that should be mentioned here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nfriedly, your comments are spot on. Its nice to have this explained
@@ -38,6 +38,25 @@ await cluster.close(); | |||
| scripts | | Script definitions (see [Lua Scripts](./programmability.md#lua-scripts)) | | |||
| functions | | Function definitions (see [Functions](./programmability.md#functions)) | | |||
|
|||
## Usage | |||
|
|||
Most redis commands are the same as with individual clients. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct
Description
We noticed that
sendCommand()
takes different arguments for clusters vs clients, and I wanted to document the differences. I think I got it correct, but please review closely just to be sure.It might also be worth adding a note to the readme also, since this is a somewhat unexpected difference, what do you think?
Relates to express-rate-limit/rate-limit-redis#207 & express-rate-limit/rate-limit-redis#208
Checklist
npm test
pass with this change (including linting)?Is the new or changed code fully tested?(N/A)