MCPcopy Create free account
hub / github.com/allegro/bigcache / providedOnRemoveWithMetadata

Method providedOnRemoveWithMetadata

bigcache.go:266–270  ·  view source on GitHub ↗
(wrappedEntry []byte, reason RemoveReason)

Source from the content-addressed store, hash-verified

264}
265
266func (c *BigCache) providedOnRemoveWithMetadata(wrappedEntry []byte, reason RemoveReason) {
267 hashedKey := c.hash.Sum64(readKeyFromEntry(wrappedEntry))
268 shard := c.getShard(hashedKey)
269 c.config.OnRemoveWithMetadata(readKeyFromEntry(wrappedEntry), readEntry(wrappedEntry), shard.getKeyMetadata(hashedKey))
270}

Callers

nothing calls this directly

Calls 5

getShardMethod · 0.95
readKeyFromEntryFunction · 0.85
readEntryFunction · 0.85
getKeyMetadataMethod · 0.80
Sum64Method · 0.65

Tested by

no test coverage detected