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

Method ReloadState

osscluster.go:1217–1219  ·  view source on GitHub ↗

ReloadState reloads cluster state. If available it calls ClusterSlots func to get cluster slots information.

(ctx context.Context)

Source from the content-addressed store, hash-verified

1215// ReloadState reloads cluster state. If available it calls ClusterSlots func
1216// to get cluster slots information.
1217func (c *ClusterClient) ReloadState(ctx context.Context) {
1218 c.state.LazyReload()
1219}
1220
1221// Close closes the cluster client, releasing any open resources.
1222//

Callers 2

NewFailoverClusterClientFunction · 0.95

Calls 1

LazyReloadMethod · 0.80

Tested by 1