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

Method Len

ring.go:672–674  ·  view source on GitHub ↗

Len returns the current number of shards in the ring.

()

Source from the content-addressed store, hash-verified

670
671// Len returns the current number of shards in the ring.
672func (c *Ring) Len() int {
673 return c.sharding.Len()
674}
675
676// Subscribe subscribes the client to the specified channels.
677func (c *Ring) Subscribe(ctx context.Context, channels ...string) *PubSub {

Callers

nothing calls this directly

Calls 1

LenMethod · 0.65

Tested by

no test coverage detected