MCPcopy Create free account
hub / github.com/AdRoll/baker / isHot

Method isHot

pkg/buffercache/location.go:25–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23// isHot/isCold reports whether l points to an entry in the hot/cold cache.
24func (l location) isCold() bool { return l&0x80000000 == 0 }
25func (l location) isHot() bool { return l&0x80000000 != 0 }
26
27// coldBucketIdx/coldCellIdx returns the bucket/cell index in cold cache.
28func (l location) coldBucketIdx() int { return int(l >> 24) }

Callers 5

removeColdMethod · 0.80
removeHotMethod · 0.80
assertKeyValueFunction · 0.80
assertKeyInHotCacheFunction · 0.80
assertKeyNotInHotCacheFunction · 0.80

Calls

no outgoing calls

Tested by 3

assertKeyValueFunction · 0.64
assertKeyInHotCacheFunction · 0.64
assertKeyNotInHotCacheFunction · 0.64