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

Method OnNewNode

ring.go:717–719  ·  view source on GitHub ↗
(fn func(rdb *Client))

Source from the content-addressed store, hash-verified

715}
716
717func (c *Ring) OnNewNode(fn func(rdb *Client)) {
718 c.sharding.OnNewNode(fn)
719}
720
721// ForEachShard concurrently calls the fn on each live shard in the ring.
722// It returns the first error if any.

Callers 4

InstrumentTracingFunction · 0.45
InstrumentMetricsFunction · 0.45
setupNotificationHookFunction · 0.45
setupNotificationHooksFunction · 0.45

Calls

no outgoing calls

Tested by 2

setupNotificationHookFunction · 0.36
setupNotificationHooksFunction · 0.36