MCPcopy Create free account
hub / github.com/deepflowio/deepflow / GetORGCaches

Function GetORGCaches

server/controller/prometheus/cache/org.go:54–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func GetORGCaches() *ORGCaches {
55 orgCachesOnce.Do(func() {
56 orgCaches = &ORGCaches{
57 orgIDToCache: cmap.NewWithCustomShardingFunction[int, *Cache](common.ShardingInt),
58 }
59 })
60 return orgCaches
61}
62
63func (c *ORGCaches) Init(ctx context.Context, cfg *prometheuscfg.Config) {
64 c.ctx = ctx

Callers 1

GetCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected