-
Notifications
You must be signed in to change notification settings - Fork 218
Closed
Labels
Description
Take the below ACLDryRun
as an example to implement the new function in rueidiscompat
that provides the same interface as go-redis:
rueidis/rueidiscompat/adapter.go
Lines 3199 to 3203 in 93e9af3
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) | |
} |
rueidis/rueidiscompat/pipeline.go
Lines 2086 to 2090 in 93e9af3
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.