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

Struct ClusterClient

osscluster.go:1148–1156  ·  view source on GitHub ↗

------------------------------------------------------------------------------ ClusterClient is a Redis Cluster client representing a pool of zero or more underlying connections. It's safe for concurrent use by multiple goroutines.

Source from the content-addressed store, hash-verified

1146// or more underlying connections. It's safe for concurrent use by
1147// multiple goroutines.
1148type ClusterClient struct {
1149 opt *ClusterOptions
1150 nodes *clusterNodes
1151 state *clusterStateHolder
1152 cmdsInfoCache *cmdsInfoCache
1153 cmdInfoResolver *commandInfoResolver
1154 cmdable
1155 hooksMixin
1156}
1157
1158// NewClusterClient returns a Redis Cluster client as described in
1159// https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected