MCPcopy
hub / github.com/redis/go-redis / ACLCatArgs

Method ACLCatArgs

acl_commands.go:107–116  ·  view source on GitHub ↗
(ctx context.Context, options *ACLCatArgs)

Source from the content-addressed store, hash-verified

105}
106
107func (c cmdable) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd {
108 // if there is a category passed, build new cmd, if there isn't - use the ACLCat method
109 if options != nil && options.Category != "" {
110 cmd := NewStringSliceCmd(ctx, "acl", "cat", options.Category)
111 _ = c(ctx, cmd)
112 return cmd
113 }
114
115 return c.ACLCat(ctx)
116}

Callers

nothing calls this directly

Calls 2

ACLCatMethod · 0.95
NewStringSliceCmdFunction · 0.85

Tested by

no test coverage detected