Skip to content
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 XCLAIM command. #2092

Merged
merged 5 commits into from
Aug 7, 2024

Conversation

Yury-Fridlyand
Copy link
Collaborator

No description provided.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner August 6, 2024 02:47
node/src/BaseClient.ts Outdated Show resolved Hide resolved
@@ -871,6 +871,64 @@ export async function transactionTest(
]);
baseTransaction.xdel(key9, ["0-3", "0-5"]);
responseData.push(["xdel(key9, [['0-3', '0-5']])", 1]);

// key9 has one entry here: {"0-2":[["field","value2"]]}
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this comment relevant to stay in the code? or was it more used for testing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it is helper for us when adding tests

node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/Transaction.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
Yury-Fridlyand and others added 3 commits August 6, 2024 14:21
Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
…7-XCLAIM

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Copy link
Collaborator

@yipin-chen yipin-chen left a comment

Choose a reason for hiding this comment

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

LGTM - for the two customCommands, do we need to add a TODO to remind us to replace to actual commands once implemented?

@Yury-Fridlyand
Copy link
Collaborator Author

I set a reminder in my head, hope it won't GC'd.

@acarbonetto acarbonetto merged commit 4e28404 into valkey-io:main Aug 7, 2024
8 checks passed
@acarbonetto acarbonetto deleted the node/yuryf-valkey-47-XCLAIM branch August 7, 2024 16:13
GumpacG added a commit to Bit-Quill/valkey-glide that referenced this pull request Aug 7, 2024
* Add `XCLAIM` command.

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Aug 12, 2024
* Add `XCLAIM` command.

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Chloe Yip <chloe.yip@improving.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants