MCPcopy
hub / github.com/kopia/kopia / Pop

Method Pop

internal/cache/persistent_lru_cache.go:266–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264}
265
266func (h *contentMetadataHeap) Pop() any {
267 old := h.data
268 n := len(old)
269 item := old[n-1]
270 h.data = old[0 : n-1]
271 h.totalDataBytes -= item.Length
272 delete(h.index, item.BlobID)
273
274 return item
275}
276
277// +checklocks:c.listCacheMutex
278func (c *PersistentCache) aboveSoftLimit(extraBytes int64) bool {

Callers 1

sweepLockedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected