(size int)
| 320 | } |
| 321 | |
| 322 | func (sc *SubCache[EntityT, ExcerptT, CacheT]) SetCacheSize(size int) { |
| 323 | sc.maxLoaded = size |
| 324 | sc.evictIfNeeded() |
| 325 | } |
| 326 | |
| 327 | func (sc *SubCache[EntityT, ExcerptT, CacheT]) Close() error { |
| 328 | sc.mu.Lock() |
nothing calls this directly
no test coverage detected