Documentation
¶
Overview ¶
Package cache manages the local graph cache stored under ~/.supermodel/cache/. Graphs are keyed by the SHA-256 hash of the uploaded repository ZIP, matching the content-addressed scheme used by the Supermodel API.
This is a shared kernel package. It must contain no business logic. Slice packages under internal/ may import it freely.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalysisKey ¶ added in v0.4.0
AnalysisKey builds a cache key for a specific analysis type on a repo state.
func RepoFingerprint ¶ added in v0.4.0
RepoFingerprint returns a fast, content-based cache key for the repo at dir.
For clean git repos (~1ms): returns the commit SHA. For dirty git repos (~100ms): returns commitSHA:dirtyHash. For non-git dirs: returns empty string and an error.
Types ¶
This section is empty.