Skip to content

Add support for ZRANDMEMBER through ZSetOperations and ReactiveZSetOperations #2049

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

Closed
mp911de opened this issue Apr 19, 2021 · 0 comments
Closed
Assignees
Labels

Comments

@mp911de
Copy link
Member

mp911de commented Apr 19, 2021

Add support in BoundZSetOperations, imperative and reactive …ZSetOperations and on the connection level.

ZRANDMEMBER changes its output depending on count and WITHSCORES. On the operations level we could have:

V random();

List<V> random(int count);

List<TypedTuple<V>> randomWithScores(int count);

See https://redis.io/commands/zrandmember

@mp911de mp911de self-assigned this Jun 25, 2021
@mp911de mp911de linked a pull request Jun 28, 2021 that will close this issue
christophstrobl added a commit that referenced this issue Jun 30, 2021
Add randomValue() method to both RedisZSet and RedisSet.

See: #2049
Original Pull Request: #2104
@christophstrobl christophstrobl added this to the 2.6 M1 (2021.1.0) milestone Jun 30, 2021
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 a pull request may close this issue.

2 participants