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

Method Reset

sentinel.go:762–766  ·  view source on GitHub ↗

Reset resets all the masters with matching name. The pattern argument is a glob-style pattern. The reset process clears any previous state in a master (including a failover in progress), and removes every replica and sentinel already discovered and associated with the master.

(ctx context.Context, pattern string)

Source from the content-addressed store, hash-verified

760// (including a failover in progress), and removes every replica and sentinel
761// already discovered and associated with the master.
762func (c *SentinelClient) Reset(ctx context.Context, pattern string) *IntCmd {
763 cmd := NewIntCmd(ctx, "sentinel", "reset", pattern)
764 _ = c.Process(ctx, cmd)
765 return cmd
766}
767
768// FlushConfig forces Sentinel to rewrite its configuration on disk, including
769// the current Sentinel state.

Calls 2

ProcessMethod · 0.95
NewIntCmdFunction · 0.85