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

Method providedOnRemoveWithReason

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

Source from the content-addressed store, hash-verified

255}
256
257func (c *BigCache) providedOnRemoveWithReason(wrappedEntry []byte, reason RemoveReason) {
258 if c.config.onRemoveFilter == 0 || (1<<uint(reason))&c.config.onRemoveFilter > 0 {
259 c.config.OnRemoveWithReason(readKeyFromEntry(wrappedEntry), readEntry(wrappedEntry), reason)
260 }
261}
262
263func (c *BigCache) notProvidedOnRemove(wrappedEntry []byte, reason RemoveReason) {
264}

Callers

nothing calls this directly

Calls 2

readKeyFromEntryFunction · 0.85
readEntryFunction · 0.85

Tested by

no test coverage detected