316
newCacheSize := c.calculateNewCacheSize(newEntrySize, existingEntry.Size())
317
if newCacheSize > c.maxSize {
318
>
c.tryEvictUntilEnoughSpaceWithSkipEntry(newEntrySize, existingEntry)
lru.go
319
>
// calculate again after eviction
320
>
newCacheSize = c.calculateNewCacheSize(newEntrySize, existingEntry.Size())
321
>
if newCacheSize > c.maxSize {
322
// This should never happen since allowUpdate is always **true** for non-pinned cache,
323
// and if all entries are not pinned(ref==0), then the cache should never be full as long as