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

Method Reload

osscluster.go:1078–1085  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1076}
1077
1078func (c *clusterStateHolder) Reload(ctx context.Context) (*clusterState, error) {
1079 state, err := c.load(ctx)
1080 if err != nil {
1081 return nil, err
1082 }
1083 c.state.Store(state)
1084 return state, nil
1085}
1086
1087func (c *clusterStateHolder) LazyReload() {
1088 // If already reloading, mark that another reload is pending

Callers 4

LazyReloadMethod · 0.95
GetMethod · 0.95
ReloadOrGetMethod · 0.95
NodesMethod · 0.80

Calls

no outgoing calls

Tested by 1

NodesMethod · 0.64