-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
#652: feature: HRANDFIELD command #696
#652: feature: HRANDFIELD command #696
Conversation
Could you please resolve the conflicts? |
Hi @JyotinderSingh I have resolved the conflicts |
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.
Thanks for adding support for HRANDFIELD
command @Indranil0603! I've changed the structure of the tests and the eval implementation a little to make it more readable.
Please go through it for future reference.
Closes #652
Adds support for the HRANDFIELD command. This command returns one or more random fields from the hash stored at the specified key. If the "WITHVALUES" option is provided, both fields and their corresponding values are returned. It supports fetching a specific number of fields based on the count argument, with positive values returning unique fields and negative values allowing repeated selections.
Redis doc: HRANDFIELD
Changes: