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

Method isCold

pkg/buffercache/location.go:24–24  ·  view source on GitHub ↗

isHot/isCold reports whether l points to an entry in the hot/cold cache.

()

Source from the content-addressed store, hash-verified

22
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.

Callers 5

PutMethod · 0.80
assertKeyValueFunction · 0.80
assertKeyInColdCacheFunction · 0.80
assertColdLocationFunction · 0.80
Test_isInColdCacheFunction · 0.80

Calls

no outgoing calls

Tested by 4

assertKeyValueFunction · 0.64
assertKeyInColdCacheFunction · 0.64
assertColdLocationFunction · 0.64
Test_isInColdCacheFunction · 0.64