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

Method Close

osscluster.go:1225–1227  ·  view source on GitHub ↗

Close closes the cluster client, releasing any open resources. It is rare to Close a ClusterClient, as the ClusterClient is meant to be long-lived and shared between many goroutines.

()

Source from the content-addressed store, hash-verified

1223// It is rare to Close a ClusterClient, as the ClusterClient is meant
1224// to be long-lived and shared between many goroutines.
1225func (c *ClusterClient) Close() error {
1226 return c.nodes.Close()
1227}
1228
1229func (c *ClusterClient) Process(ctx context.Context, cmd Cmder) error {
1230 err := c.processHook(ctx, cmd)

Calls 1

CloseMethod · 0.65