diff --git a/client.go b/client.go index 0af0643..e8b6508 100644 --- a/client.go +++ b/client.go @@ -75,7 +75,7 @@ func (o *OwnClient) Exec(ctx context.Context, instanceFlag string, command const ) cmdParamList := []any{ - command, + strings.ToLower(command.String()), // redis 命令不区分大小写, 统一使用小写 } argStrList := make([]string, 0) for _, itemArg := range args {