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

Method NewAliasBuilder

search_builders.go:545–547  ·  view source on GitHub ↗

NewAliasBuilder creates a new AliasBuilder for FT.ALIAS* commands. EXPERIMENTAL: this API is subject to change, use with caution.

(ctx context.Context, alias string)

Source from the content-addressed store, hash-verified

543// NewAliasBuilder creates a new AliasBuilder for FT.ALIAS* commands.
544// EXPERIMENTAL: this API is subject to change, use with caution.
545func (c *Client) NewAliasBuilder(ctx context.Context, alias string) *AliasBuilder {
546 return &AliasBuilder{c: c, ctx: ctx, alias: alias}
547}
548
549// Action sets the action for the alias builder.
550func (b *AliasBuilder) Action(action string) *AliasBuilder {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected