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

Method masters

osscluster_test.go:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func (s *clusterScenario) masters() []*redis.Client {
34 result := make([]*redis.Client, 3)
35 for pos, port := range s.ports[:3] {
36 result[pos] = s.clients[port]
37 }
38 return result
39}
40
41func (s *clusterScenario) slaves() []*redis.Client {
42 result := make([]*redis.Client, 3)

Callers 2

CloseMethod · 0.95
configureClusterTopologyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected