-
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
feat: add spop by count #1434
feat: add spop by count #1434
Conversation
@@ -424,6 +424,9 @@ class Storage { | |||
// Removes and returns one random elements from the set value store at key. | |||
Status SPop(const Slice& key, std::string* member); | |||
|
|||
// Removes and returns several random elements specified by count from the set value store at key. | |||
Status SPop(const Slice& key, std::vector<std::string>* members, int64_t count); |
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.
这里加接口,可以把旧的接口删了
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.
ok,那set test里面也需要修改了。
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.
ok,那set test里面也需要修改了。
嗯,你一块改了就行。另外里面那个50那个magic值,最好能导出来
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.
ok,那set test里面也需要修改了。
嗯,你一块改了就行。另外里面那个50那个magic值,最好能导出来
导出来啥意思?
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.
ok,那set test里面也需要修改了。
嗯,你一块改了就行。另外里面那个50那个magic值,最好能导出来
导出来啥意思?
最好可配置
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.
有道理
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.
ok,那set test里面也需要修改了。
嗯,你一块改了就行。另外里面那个50那个magic值,最好能导出来
导出来啥意思?
最好可配置
这个可以建个 issue,后续推进吧。
…p-count get latest update version
改动点: |
改动的已经commit了,等待review |
…p-count pull updated changes
ping @wanghenshui |
fix #889:
redis API: spop with count.