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

Struct Cache

internal/stats/cache.go:16–18  ·  view source on GitHub ↗

Cache maps a jsonl path to its last-scanned rollup, keyed by file identity (mod time + size) so unchanged files are not rescanned.

Source from the content-addressed store, hash-verified

14// Cache maps a jsonl path to its last-scanned rollup, keyed by file
15// identity (mod time + size) so unchanged files are not rescanned.
16type Cache struct {
17 Entries map[string]cacheEntry `json:"entries"`
18}
19
20// LoadCache reads a cache file. A missing or corrupt file yields an empty
21// (usable) cache — never an error. Stats must never fail on a bad cache.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected