-
Notifications
You must be signed in to change notification settings - Fork 53
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
Node: Add binary variant to server management commands. #2179
Node: Add binary variant to server management commands. #2179
Conversation
Signed-off-by: Yury-Fridlyand <[email protected]>
): Promise<Record<string, string>> { | ||
return this.createWritePromise(createConfigGet(parameters)); | ||
decoder?: Decoder, | ||
): Promise<Record<string, GlideString>> { |
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 assume that config parameter names are defined by the server, so all of them are simple strings.
Can I assume that parameter values are simple strings as well?
public async configSet(parameters: Record<string, string>): Promise<"OK"> { | ||
return this.createWritePromise(createConfigSet(parameters)); | ||
public async configSet( | ||
parameters: Record<string, GlideString>, |
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.
same 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.
some minor comments to clean up
node/src/Commands.ts
Outdated
@@ -98,6 +98,15 @@ export type DecoderOption = { | |||
decoder?: Decoder; | |||
}; | |||
|
|||
/** An extension to command option types with {@link Routes}. */ | |||
export type RouteOption = { |
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.
Is this used in this file?
Maybe RouteOption should be defined in GlideClusterClient because it's not ever used here.
Thoughts?
Co-authored-by: Andrew Carbonetto <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]>
* Add binary variant to server management commands. Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
* Add binary variant to server management commands. Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
https://redis.io/docs/latest/commands/?group=server
ConfigGet
ConfigResetStat
ConfigRewrite
ConfigSet
DbSize
FlushAll
FlushDb
Info
LastSave
Lolwut
Time