Versions in this module Expand all Collapse all v0 v0.1.0 Dec 21, 2020 Changes in this version + type CachedFile struct + func NewFile(path string, onDisk bool, content interface{}) *CachedFile + func (f *CachedFile) Content() interface{} + func (f *CachedFile) IsFresh() bool + func (f *CachedFile) Path() string + func (f *CachedFile) UpdateLastRefresh() + type FileCache struct + func NewFileCache(size int, maxAge time.Duration) *FileCache + func (fc *FileCache) Get(path string) (*CachedFile, bool) + func (fc *FileCache) Iterate(iterFunc func(*CachedFile)) + func (fc *FileCache) IterateOrdered(iterFunc func(*CachedFile)) + func (fc *FileCache) Put(f *CachedFile) + func (fc *FileCache) Remove(path string) + func (fc *FileCache) StartMonitor(d time.Duration)