-
Notifications
You must be signed in to change notification settings - Fork 65
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
added clientId command in node #438
Conversation
node/src/RedisClusterClient.ts
Outdated
* case the client will initially try to route the command to the nodes defined by `route`. | ||
* @returns the id of the client. | ||
*/ | ||
public clientId(route?: Routes): Promise<number | [string, number][]> { |
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.
rebase and use ClusterResponse<number>
@@ -175,4 +176,18 @@ export class RedisClusterClient extends BaseClient { | |||
toProtobufRoute(route) | |||
); | |||
} | |||
|
|||
/** Returns the current connection id. |
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.
should the documentation explain that since connections might disconnect and reconnect, and since the command might be routed differently between calls, the result isn't promised to remain constant?
@barshaul
ce1d98c
to
c0ea4c0
Compare
please rebase |
b7e58bf
to
6ddf1a0
Compare
node/src/RedisClusterClient.ts
Outdated
* @param route - The command will be routed automatically, unless `route` is provided, in which | ||
* case the client will initially try to route the command to the nodes defined by `route`. | ||
* @returns the id of the client. When specifying a route other than a single node, | ||
* the response will be a dictionary of Address: nodeResponse. |
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.
a dictionary of Address: nodeResponse
is neither english, nor types.
6ddf1a0
to
260d3ba
Compare
260d3ba
to
8fef3b1
Compare
added clientId command in node.