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

TypeAlias location

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

A location represents the location of an entry in the cache. It can either point to an entry in the hot or in the cold cache. The MSB indicates whether the entry pointed to by this location is in the hot cache. If the location indicates a cold cache entry, then the bucket index is at the bits 24-30

Source from the content-addressed store, hash-verified

16// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
17// 1| 7 bits | 24 bits |
18type location uint32
19
20// hot cache sentinel value
21const hotCacheLocation location = 1 << 31

Callers 1

coldLocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected