Skip to content

Commit b860a10

Browse files
committed
fix(cmdSlot): Add shortlist of keyless cmds
1 parent 0f66cd0 commit b860a10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

command.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func cmdFirstKeyPos(cmd Cmder) int {
8181
}
8282

8383
switch cmd.Name() {
84+
case "echo", "ping", "command":
85+
return 0
8486
case "eval", "evalsha", "eval_ro", "evalsha_ro":
8587
if cmd.stringArg(2) != "0" {
8688
return 3

0 commit comments

Comments
 (0)