Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2023 v1.0.0 Jul 30, 2023 Changes in this version + var ErrMissing = errors.New("missing data") + type Cache struct + func NewCache(sw *timeutils.Stopwatch, log logutils.Log) (*Cache, error) + func (c *Cache) Get(pkg *packages.Package, mode HashMode, key string, data any) error + func (c *Cache) Put(pkg *packages.Package, mode HashMode, key string, data any) error + func (c *Cache) Trim() + type HashMode int + const HashModeNeedAllDeps + const HashModeNeedDirectDeps + const HashModeNeedOnlySelf