Skip to main content

Module pin_cache

Module pin_cache 

Source
Expand description

Dormant local whole-SST read index. The remote object store remains authoritative.

Registration makes an object eligible for a local route but does not write or publish it. Files use the fixed <object_id>.sst path. There is no download API in this layer: safe path reuse requires the storage admission and GC unlink protections added later. Unregistering prevents new lookups; existing handles retain their selected file. Reads never enqueue refill work. The backend does not track version or refill identities.

Modulesยง

membership ๐Ÿ”’

Structsยง

PinCache ๐Ÿ”’
A local whole-SST cache. The remote object store remains authoritative. Each objectโ€™s state is protected by its shard lock. Reads and membership updates may run concurrently; batch membership updates are not atomic across objects.
PinCacheFile ๐Ÿ”’
One local file, shared by the index and readers after publication.
PinCacheObject ๐Ÿ”’
One registered SST object; registration alone does not make it readable or start refill.
PinCacheReadHandle ๐Ÿ”’
A reference to one published file, retained even after its object leaves the index. Reads never look up the object a second time. Callers must support fallback if the selected local file becomes unavailable.
PinCacheShard ๐Ÿ”’
One shardโ€™s registered object index.

Functionsยง

metric_bytes ๐Ÿ”’