MCPcopy Create free account
hub / github.com/Facets-cloud/flow / Prune

Method Prune

internal/stats/cache.go:69–75  ·  view source on GitHub ↗

Prune drops cache entries whose path was not seen in the latest run.

(seen map[string]bool)

Source from the content-addressed store, hash-verified

67
68// Prune drops cache entries whose path was not seen in the latest run.
69func (c *Cache) Prune(seen map[string]bool) {
70 for p := range c.Entries {
71 if !seen[p] {
72 delete(c.Entries, p)
73 }
74 }
75}

Callers 2

BuildStatsFunction · 0.80

Calls

no outgoing calls

Tested by 1