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

Function newCmdsInfoCache

command.go:5210–5214  ·  view source on GitHub ↗
(fn func(ctx context.Context) (map[string]*CommandInfo, error))

Source from the content-addressed store, hash-verified

5208}
5209
5210func newCmdsInfoCache(fn func(ctx context.Context) (map[string]*CommandInfo, error)) *cmdsInfoCache {
5211 return &cmdsInfoCache{
5212 fn: fn,
5213 }
5214}
5215
5216func (c *cmdsInfoCache) Get(ctx context.Context) (map[string]*CommandInfo, error) {
5217 c.refreshLock.Lock()

Callers 3

NewRingFunction · 0.85
NewClusterClientFunction · 0.85

Calls

no outgoing calls