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

Method SetClusterStateReloadCallback

maintnotifications/manager.go:403–405  ·  view source on GitHub ↗

SetClusterStateReloadCallback sets the callback function that will be called when a SMIGRATED notification is received. This allows node clients to notify their parent ClusterClient to reload cluster state.

(callback ClusterStateReloadCallback)

Source from the content-addressed store, hash-verified

401// SetClusterStateReloadCallback sets the callback function that will be called when a SMIGRATED notification is received.
402// This allows node clients to notify their parent ClusterClient to reload cluster state.
403func (hm *Manager) SetClusterStateReloadCallback(callback ClusterStateReloadCallback) {
404 hm.clusterStateReloadCallback = callback
405}
406
407// TriggerClusterStateReload calls the cluster state reload callback if it's set.
408// This is called when a SMIGRATED notification is received.

Calls

no outgoing calls