You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to https://redis.io/commands/srandmember/, If called with a negative count, the behavior changes and the command is allowed to return the same element multiple times. In this case, the number of returned elements is the absolute value of the specified count
What did you see instead?
Anything Else?
No response
Are you willing to submit a PR?
I'm willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Search before asking
Version
2.7.0
Minimal reproduce step
10.70.163.45:6666> srandmember set1 5
10.70.163.45:6666> srandmember set1 -5
(empty array)
10.70.163.45:6666> srandmember set1 -2
(empty array)
What did you expect to see?
According to https://redis.io/commands/srandmember/, If called with a negative count, the behavior changes and the command is allowed to return the same element multiple times. In this case, the number of returned elements is the absolute value of the specified count
What did you see instead?
Anything Else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: