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

Method NextGeneration

osscluster.go:687–689  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685}
686
687func (c *clusterNodes) NextGeneration() uint32 {
688 return atomic.AddUint32(&c.generation, 1)
689}
690
691// GC removes unused nodes.
692func (c *clusterNodes) GC(generation uint32) {

Callers 1

newClusterStateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected