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

Struct cmdsInfoCache

command.go:5202–5208  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

5200//------------------------------------------------------------------------------
5201
5202type cmdsInfoCache struct {
5203 fn func(ctx context.Context) (map[string]*CommandInfo, error)
5204
5205 once internal.Once
5206 refreshLock sync.RWMutex
5207 cmds map[string]*CommandInfo
5208}
5209
5210func newCmdsInfoCache(fn func(ctx context.Context) (map[string]*CommandInfo, error)) *cmdsInfoCache {
5211 return &cmdsInfoCache{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected