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

Added zcount command in node. #909

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Conversation

adanWattad
Copy link
Contributor

Issue #, if available:

Description of changes:

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

@adanWattad adanWattad requested a review from a team as a code owner February 7, 2024 11:41
@adanWattad adanWattad force-pushed the node/zcount branch 2 times, most recently from 5393d0a to 59a02b9 Compare February 7, 2024 11:54
@barshaul
Copy link
Collaborator

Please talk with @shohamazon, we saw that we need to refactor this command implementation in python

@shachlanAmazon
Copy link
Contributor

please align tests with #911

maxScore: ScoreLimit
): redis_request.Command {
const args = [key];

Copy link
Collaborator

Choose a reason for hiding this comment

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

lets have consts for the args values, e.g.:

const positiveInfinityArg = "+inf"
const negativeInfinityArg = "-inf"
const isInclusiveArg = "("

).toEqual(0);
});
},
config.timeout
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add a test for if key holds a value that is not a sorted set

@adanWattad adanWattad merged commit 6ea7701 into valkey-io:main Feb 14, 2024
6 checks passed
@adanWattad adanWattad deleted the node/zcount branch February 14, 2024 12:36
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.

4 participants