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

Method NewDynamicResolver

osscluster.go:2516–2520  ·  view source on GitHub ↗

NewDynamicResolver returns a CommandInfoResolver that uses the underlying cmdInfo cache to resolve the policies

()

Source from the content-addressed store, hash-verified

2514// NewDynamicResolver returns a CommandInfoResolver
2515// that uses the underlying cmdInfo cache to resolve the policies
2516func (c *ClusterClient) NewDynamicResolver() *commandInfoResolver {
2517 return &commandInfoResolver{
2518 resolveFunc: c.extractCommandInfo,
2519 }
2520}
2521
2522func appendIfNotExist[T comparable](vals []T, newVal T) []T {
2523 for _, v := range vals {

Callers 1

newClusterClientMethod · 0.80

Calls

no outgoing calls

Tested by 1

newClusterClientMethod · 0.64