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

Method AddNotificationHook

maintnotifications/manager.go:395–399  ·  view source on GitHub ↗
(notificationHook NotificationHook)

Source from the content-addressed store, hash-verified

393}
394
395func (hm *Manager) AddNotificationHook(notificationHook NotificationHook) {
396 hm.hooksMu.Lock()
397 defer hm.hooksMu.Unlock()
398 hm.hooks = append(hm.hooks, notificationHook)
399}
400
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.

Calls

no outgoing calls