MCPcopy
hub / github.com/netdata/netdata / NewCache

Function NewCache

src/go/plugin/framework/confgroup/cache.go:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3package confgroup
4
5func NewCache() *Cache {
6 return &Cache{
7 hashes: make(map[uint64]uint),
8 sources: make(map[string]map[uint64]Config),
9 }
10}
11
12type Cache struct {
13 hashes map[uint64]uint // map[cfgHash]cfgCount

Callers 1

TestConfigCache_AddFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestConfigCache_AddFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…