Documentation
¶
Overview ¶
Package cache stores scan results keyed by content hash so unchanged targets are not re-scanned. Keys come from plugin.ComputeCacheKey (a hex SHA, safe as a filename).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
// Get returns the cached report for key, or ok=false on miss/expiry.
Get(key string) (sarif.Report, bool)
// Put stores report under key.
Put(key string, report sarif.Report) error
}
Cache stores and retrieves scan reports by key.
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
Local is a filesystem-backed cache with optional TTL expiry. Safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.