Skip to content

Add ACLLogReset to rueidiscompat #738

@rueian

Description

@rueian

Take the below ACLDryRun as an example to implement the new function in rueidiscompat that provides the same interface as go-redis:

func (c *Compat) ACLDryRun(ctx context.Context, username string, command ...any) *StringCmd {
cmd := c.client.B().AclDryrun().Username(username).Command(command[0].(string)).Arg(argsToSlice(command[1:])...).Build()
resp := c.client.Do(ctx, cmd)
return newStringCmd(resp)
}

func (c *Pipeline) ACLDryRun(ctx context.Context, username string, command ...any) *StringCmd {
ret := c.comp.ACLDryRun(ctx, username, command...)
c.rets = append(c.rets, ret)
return ret
}

See the parent issue for more details #736.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions