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

Extended Sorted Set support by adding ZINTER command #859

Merged
merged 7 commits into from
Dec 14, 2022

Conversation

vladvildanov
Copy link
Contributor

@vladvildanov vladvildanov linked an issue Dec 12, 2022 that may be closed by this pull request
@@ -114,6 +114,7 @@
* @method $this zdiffstore(string $destination, array $keys)
* @method $this zincrby($key, $increment, $member)
* @method $this zinterstore(string $destination, array $keys, int[] $weights = [], string $aggregate = 'sum')
* @method $this zinter(array $keys, int[] $weights = [], string $aggregate = 'sum', bool $withScores = false)
Copy link
Member

Choose a reason for hiding this comment

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

Should the keys and weights be a single array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The same as ZUNION. Keys should be array because of numkeys calculation and weights as array just easier to maintain

@tillkruss tillkruss merged commit 72bc11e into predis:main Dec 14, 2022
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.

Add support for missing redis command ZINTER
2 participants