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

Method getShard

bigcache.go:249–251  ·  view source on GitHub ↗
(hashedKey uint64)

Source from the content-addressed store, hash-verified

247}
248
249func (c *BigCache) getShard(hashedKey uint64) (shard *cacheShard) {
250 return c.shards[hashedKey&c.shardMask]
251}
252
253func (c *BigCache) providedOnRemove(wrappedEntry []byte, reason RemoveReason) {
254 c.config.OnRemove(readKeyFromEntry(wrappedEntry), readEntry(wrappedEntry))

Callers 7

GetMethod · 0.95
GetWithInfoMethod · 0.95
SetMethod · 0.95
AppendMethod · 0.95
DeleteMethod · 0.95
KeyMetadataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected