MCPcopy
hub / github.com/valyala/fasthttp / inMemoryCacheManager

Struct inMemoryCacheManager

fs.go:984–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982}
983
984type 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
997func (cm *inMemoryCacheManager) Lock() {
998 cm.cacheLock.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected