package
Version:
v0.16.0
Opens a new window with list of versions in this module.
Published: Jun 30, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package cache provides shared on-disk caching helpers for matcher implementations.
Get returns the cached value for key if it exists and has not expired.
Set writes value to the cache under key.
type FileCache struct {
}
FileCache stores JSON-encoded values on disk with a TTL.
NewFileCache creates a cache rooted at dir with the specified TTL.
Key uniquely identifies one cached auditor result.
func NewKey(purl, name, ecosystem, version string) Key
NewKey creates a stable cache key from the given fields.
Callers should pass the most specific identity available.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.