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 Set commands #2373

Merged
merged 7 commits into from
Oct 14, 2024
Merged

Conversation

umit
Copy link
Collaborator

@umit umit commented Sep 30, 2024

This PR introduces the SetCommands interface to the Valkey client, implementing essential set operations.

New interface methods:

  1. SAdd
  2. SRem
  3. SMembers
  4. SCard
  5. SIsMember
  6. SDiff
  7. SDiffStore
  8. SInter
  9. SInterCard
  10. SInterCardLimit
  11. SRandMember
  12. SPop

Key changes:

  • Added SetCommands interface with 12 methods for set operations
  • Each method includes documentation with parameters, return values, and usage examples
  • Added unit tests for each method to ensure correct functionality

@umit umit requested a review from a team as a code owner September 30, 2024 16:57
go/api/base_client.go Outdated Show resolved Hide resolved
go/api/commands.go Outdated Show resolved Hide resolved
go/integTest/shared_commands_test.go Show resolved Hide resolved
go/src/lib.rs Show resolved Hide resolved
go/api/commands.go Outdated Show resolved Hide resolved
@janhavigupta007 janhavigupta007 added the go golang wrapper label Oct 1, 2024
@umit umit force-pushed the go/set-commands-implementation branch 2 times, most recently from 30b4e6c to 351e1fd Compare October 1, 2024 17:28
@umit umit requested a review from janhavigupta007 October 1, 2024 17:54
go/integTest/glide_test_suite_test.go Outdated Show resolved Hide resolved
go/src/lib.rs Show resolved Hide resolved
@umit umit force-pushed the go/set-commands-implementation branch 3 times, most recently from 9a1735c to e5e44f2 Compare October 4, 2024 05:55
@umit umit requested a review from Yury-Fridlyand October 5, 2024 11:40
@umit umit force-pushed the go/set-commands-implementation branch from e5e44f2 to 7e949bb Compare October 7, 2024 17:15
go/src/lib.rs Show resolved Hide resolved
go/integTest/glide_test_suite_test.go 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.

Shall we add a separate type for Sets as it is handled separately in GO.

go/src/lib.rs Show resolved Hide resolved
go/src/lib.rs Show resolved Hide resolved
@umit umit force-pushed the go/set-commands-implementation branch from 7e949bb to c6b21fc Compare October 10, 2024 16:20
umit added 6 commits October 11, 2024 08:57
Add SetCommands interface with methods:
SAdd, SRem, SMembers, SCard, SIsMember, SDiff, SDiffStore,
SInter, SInterCard, SInterCardLimit, SRandMember, SPop

- Include method documentation and usage examples
- Add unit tests for all new methods

Signed-off-by: umit <[email protected]>

# Conflicts:
#	go/api/base_client.go

# Conflicts:
#	go/api/base_client.go
#	go/integTest/shared_commands_test.go
Signed-off-by: umit <[email protected]>
@umit umit force-pushed the go/set-commands-implementation branch from c6b21fc to 83be607 Compare October 11, 2024 15:53
@umit umit requested a review from janhavigupta007 October 11, 2024 15:55
@umit umit force-pushed the go/set-commands-implementation branch from 83be607 to f60d85c Compare October 12, 2024 18:29
go/api/set_command.go Outdated Show resolved Hide resolved
@umit umit force-pushed the go/set-commands-implementation branch from f60d85c to 8001ee8 Compare October 14, 2024 14:23
@umit umit merged commit b0d39ed into valkey-io:main Oct 14, 2024
13 checks passed
avifenesh pushed a commit to avifenesh/valkey-glide that referenced this pull request Oct 18, 2024
Go: Implement Set commands

Add SetCommands interface with methods:
SAdd, SRem, SMembers, SCard, SIsMember, SDiff, SDiffStore,
SInter, SInterCard, SInterCardLimit, SRandMember, SPop

- Include method documentation and usage examples
- Add unit tests for all new methods

Signed-off-by: umit <[email protected]>
BoazBD pushed a commit to BoazBD/valkey-glide that referenced this pull request Oct 21, 2024
Go: Implement Set commands

Add SetCommands interface with methods:
SAdd, SRem, SMembers, SCard, SIsMember, SDiff, SDiffStore,
SInter, SInterCard, SInterCardLimit, SRandMember, SPop

- Include method documentation and usage examples
- Add unit tests for all new methods

Signed-off-by: umit <[email protected]>
BoazBD pushed a commit to BoazBD/valkey-glide that referenced this pull request Oct 21, 2024
Go: Implement Set commands

Add SetCommands interface with methods:
SAdd, SRem, SMembers, SCard, SIsMember, SDiff, SDiffStore,
SInter, SInterCard, SInterCardLimit, SRandMember, SPop

- Include method documentation and usage examples
- Add unit tests for all new methods

Signed-off-by: umit <[email protected]>
Muhammad-awawdi-amazon pushed a commit that referenced this pull request Oct 23, 2024
Go: Implement Set commands

Add SetCommands interface with methods:
SAdd, SRem, SMembers, SCard, SIsMember, SDiff, SDiffStore,
SInter, SInterCard, SInterCardLimit, SRandMember, SPop

- Include method documentation and usage examples
- Add unit tests for all new methods

Signed-off-by: umit <[email protected]>
acarbonetto pushed a commit that referenced this pull request Nov 5, 2024
Go: Implement Set commands

Add SetCommands interface with methods:
SAdd, SRem, SMembers, SCard, SIsMember, SDiff, SDiffStore,
SInter, SInterCard, SInterCardLimit, SRandMember, SPop

- Include method documentation and usage examples
- Add unit tests for all new methods

Signed-off-by: umit <[email protected]>
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.

6 participants