| 982 | } |
| 983 | |
| 984 | type inMemoryCacheManager struct { |
| 985 | cache map[string]*fsFile |
| 986 | cacheBrotli map[string]*fsFile |
| 987 | cacheGzip map[string]*fsFile |
| 988 | cacheZstd map[string]*fsFile |
| 989 | cacheDuration time.Duration |
| 990 | cleanStop chan struct{} |
| 991 | cleanStopOnce sync.Once |
| 992 | pendingFiles []*fsFile |
| 993 | closed bool |
| 994 | cacheLock sync.Mutex |
| 995 | } |
| 996 | |
| 997 | func (cm *inMemoryCacheManager) Lock() { |
| 998 | cm.cacheLock.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected