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: Brpop Command #1113

Merged
merged 1 commit into from
Mar 24, 2024
Merged

Node: Brpop Command #1113

merged 1 commit into from
Mar 24, 2024

Conversation

avifenesh
Copy link
Collaborator

Add Brpop command to TS

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@avifenesh avifenesh requested a review from a team as a code owner March 13, 2024 12:28
@barshaul barshaul changed the title TS - Brpop Command Node: Brpop Command Mar 19, 2024
node/src/BaseClient.ts Outdated Show resolved Hide resolved
*
* @param keys - The `keys` of the lists to pop from.
* @param timeout - The `timeout` in seconds.
* @returns - `Array` of the `key` that elements were poped from, and the popped elements, or null if timeout is reached.
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't use @returns in transactions but Command Response: (see below)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll fix, but its not consistent throw the file, a lot of the function use returns. Need to be aligned in another PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please open a fix for that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What is a fix? like issue, or you ask to fix?

Copy link
Collaborator

@barshaul barshaul left a comment

Choose a reason for hiding this comment

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

Please fix documentation and add examples

@avifenesh avifenesh requested a review from barshaul March 19, 2024 15:55
node/src/Transaction.ts Outdated Show resolved Hide resolved
@avifenesh avifenesh force-pushed the Commands/TS/BRPOP branch 3 times, most recently from a6d33ac to 041df4c Compare March 19, 2024 16:34
@acarbonetto acarbonetto added the node Node.js wrapper label Mar 21, 2024
@avifenesh avifenesh force-pushed the Commands/TS/BRPOP branch 2 times, most recently from 07311e8 to a44a9ef Compare March 24, 2024 12:35
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
*
* @param keys - The `keys` of the lists to pop from.
* @param timeout - The `timeout` in seconds.
* @returns - `Array` of the `key` that elements were poped from, and the popped elements, or null if timeout is reached.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please open a fix for that?

@avifenesh avifenesh merged commit e3662ce into valkey-io:main Mar 24, 2024
43 of 46 checks passed
@avifenesh avifenesh deleted the Commands/TS/BRPOP branch March 24, 2024 17:57
shohamazon pushed a commit to adanWattad/glide-for-redis that referenced this pull request Apr 9, 2024
Add BRPOP command to node
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
Add BRPOP command to node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node Node.js wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants