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

Refactored ZUNIONSTORE, ZINTERSTORE, removed Numkeys trait, improved Withscores response parsing #858

Merged

Conversation

vladvildanov
Copy link
Contributor

Refactored following commands to make them easy to extend (ZUNIONSTORE, ZUNION, ZINTERSTORE, ZINTER is the same family of commands, ZUNIONSTORE implemented first and should be a base for other commands from family).

Removed Numkeys trait and moved functionality into Keys, because they're never exists in separate, whenever we pass keys arguments as array we anyway need to calculate numkeys count

Added check for empty array within Withscores trait, to prevent from exception if empty response was returned

@vladvildanov vladvildanov force-pushed the vv-zinterstore-zunionstore-refactoring branch from 6062649 to e2272b3 Compare December 8, 2022 10:37
Copy link
Member

@tillkruss tillkruss left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants