-
Notifications
You must be signed in to change notification settings - Fork 60
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 ZINTER and ZUNION commands #2146
Node: add ZINTER and ZUNION commands #2146
Conversation
Signed-off-by: TJ Zhang <[email protected]>
1d6c498
to
a7ed20f
Compare
node/src/Transaction.ts
Outdated
@@ -1871,6 +1873,8 @@ export class BaseTransaction<T extends BaseTransaction<T>> { | |||
* | |||
* @see {@link https://valkey.io/commands/zinterstore/|valkey.io} for details. | |||
* | |||
* since Valkey version 6.2.0. |
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.
* since Valkey version 6.2.0. | |
* @remarks Since Valkey version 6.2.0. |
Signed-off-by: TJ Zhang <[email protected]>
node/tests/SharedTests.ts
Outdated
async (protocol) => { | ||
await runTest(async (client: BaseClient, cluster: RedisCluster) => { | ||
if (cluster.checkIfServerVersionLessThan("6.2.0")) return; | ||
await zunionBasicTest(client); |
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.
upvoting to split into multiple tests
node/src/Commands.ts
Outdated
*/ | ||
function createZCmdArgs( | ||
keys: string[] | KeyWeight[], | ||
aggregationType?: AggregationType, |
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.
nit - change this to use an anonymous object to define the 3 optional variables:
function createZCmdArgs(
keys: string[] | KeyWeight[],
options: {aggregationType: string?, withscores: boolean?, destination: string? }
): string[] {
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: Jonathan Louie <[email protected]>
Signed-off-by: jonathanl-bq <[email protected]>
Signed-off-by: Jonathan Louie <[email protected]>
Signed-off-by: Jonathan Louie <[email protected]>
Signed-off-by: Jonathan Louie <[email protected]>
original PR: #1556