PragmaTwice commented on code in PR #1444:
URL: 
https://github.com/apache/incubator-kvrocks/pull/1444#discussion_r1201874256


##########
src/commands/cmd_set.cc:
##########
@@ -371,6 +418,7 @@ REDIS_REGISTER_COMMANDS(MakeCmdAttr<CommandSAdd>("sadd", 
-3, "write", 1, 1, 1),
                         MakeCmdAttr<CommandSDiff>("sdiff", -2, "read-only", 1, 
-1, 1),
                         MakeCmdAttr<CommandSUnion>("sunion", -2, "read-only", 
1, -1, 1),
                         MakeCmdAttr<CommandSInter>("sinter", -2, "read-only", 
1, -1, 1),
+                        MakeCmdAttr<CommandSInterCard>("sintercard", -3, 
"read-only", 1, -1, 1),

Review Comment:
   The best solution here is write a `CommandKeyRangeGen` function, since we 
have to determine the last position of the key sequence. 
   
   And of course, the position of the first key is 2.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to