1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-26 19:21:03 +03:00

feat: support eval_ro and evalsha_ro

Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
tison
2022-09-24 11:28:14 +08:00
parent 4dcf3cca72
commit d56af1f2d1
4 changed files with 61 additions and 15 deletions

View File

@ -65,7 +65,7 @@ func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int {
}
switch cmd.Name() {
case "eval", "evalsha":
case "eval", "evalsha", "eval_ro", "evalsha_ro":
if cmd.stringArg(2) != "0" {
return 3
}