-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Adds HRANDMEMBER and ZRANDMEMBER, revamps SRANDMEMBER #1504
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
Conversation
oranagra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i only reviewed HRANDMEMBER and SRANDMEMBER.
if you choose to accept my comments, you can relay them to ZRANDMEMBER
commands/hrandmember.md
Outdated
|
|
||
| @bulk-string-reply: without the additional `count` argument, the command returns a Bulk Reply with the randomly selected field, or `nil` when `key` does not exist. | ||
|
|
||
| @array-reply: when the additional `count` argument is passed, the command returns an array of fields, or an empty array when `key` does not exist. If the `WITHVALUES` modifier is used, the reply is a list fields and their values from the hash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we wanna mention nested arrays of RESP3? or some other time?
p.s. this one could have been broken into two lines (at the period)
Ref: redis/redis#8297