Versions in this module Expand all Collapse all v1 v1.1.0 Jan 1, 2026 Changes in this version + func ResetGlobalCache() + type CacheEntry struct + Content string + IsTextFile *bool + LoadTime time.Time + ModTime time.Time + Size int64 + type FileCache struct + func DefaultFileCache() *FileCache + func GetGlobalFileCache() *FileCache + func NewFileCache(maxSizeBytes int64, maxItems int) *FileCache + func (fc *FileCache) CacheMetadataOnly(filePath string) error + func (fc *FileCache) Clear() + func (fc *FileCache) Contains(filePath string) bool + func (fc *FileCache) Get(filePath string) (string, error) + func (fc *FileCache) GetLazy(filePath string) (string, error) + func (fc *FileCache) GetTextFileStatus(filePath string, checkFunc func(string) (bool, error)) (bool, error) + func (fc *FileCache) Preload(filePath string) error + func (fc *FileCache) Stats() (items int, sizeBytes int64, hitRate float64) + type Manager struct + func Global() *Manager + func (m *Manager) GetFileCache() *FileCache