Versions in this module Expand all Collapse all v1 v1.18.2 Nov 11, 2024 Changes in this version + type JSON struct + Dir string + Files map[string]*cacheFile + func NewJSON(cacheDir, fileRoot, key string) (j *JSON, err error) + func (j *JSON) Add(file sts.Hashed) + func (j *JSON) Done(key string, whileLocked func(sts.Cached)) + func (j *JSON) Get(key string) sts.Cached + func (j *JSON) Iterate(f func(sts.Cached) bool) + func (j *JSON) Persist() (err error) + func (j *JSON) Remove(key string) + func (j *JSON) Reset(key string)