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

Method ClientSetName

commands.go:319–323  ·  view source on GitHub ↗

ClientSetName assigns a name to the connection.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

317
318// ClientSetName assigns a name to the connection.
319func (c statefulCmdable) ClientSetName(ctx context.Context, name string) *BoolCmd {
320 cmd := NewBoolCmd(ctx, "client", "setname", name)
321 _ = c(ctx, cmd)
322 return cmd
323}
324
325// ClientSetInfo sends a CLIENT SETINFO command with the provided info.
326func (c statefulCmdable) ClientSetInfo(ctx context.Context, info LibraryInfo) *StatusCmd {

Callers

nothing calls this directly

Calls 1

NewBoolCmdFunction · 0.85

Tested by

no test coverage detected