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

Go: Implement Pfadd, Pfcount and Select commands #2822

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

niharikabhavaraju
Copy link
Contributor

@niharikabhavaraju niharikabhavaraju commented Dec 16, 2024

Implementing the Pfadd, Pfcount and Select commands in GO client.

Signed-off-by: Niharika Bhavaraju <nbhavaraju@google.com>
@niharikabhavaraju niharikabhavaraju requested a review from a team as a code owner December 16, 2024 03:28
@Yury-Fridlyand Yury-Fridlyand added the go golang wrapper label Dec 16, 2024
niharikabhavaraju and others added 2 commits December 16, 2024 18:13
Signed-off-by: Niharika Bhavaraju <nbhavaraju@google.com>
go/api/commands.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@janhavigupta007 janhavigupta007 left a comment

Choose a reason for hiding this comment

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

Please resolve the comments. Rest LG.

return handleLongResponse(result)
}

func (client *baseClient) Select(index int64) (Result[string], error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This must be implemented in standalone client only. Cluster has no databases to switch into, so this command is no-op there.

// HyperLogLogCommands defines an interface for the "HyperLogLog Commands" group of commands for standalone and cluster
// clients.
//
// [valkey.io]: https://valkey.io/commands/?group=string#hyperloglog
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please fix the link and align the doc with #2844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go golang wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants