Skip to main content

l1_wrap

Function l1_wrap 

Source
pub fn l1_wrap(origin: Arc<dyn ObjectStore>, ns: &str) -> Arc<dyn ObjectStore> 
Expand description

Wrap origin with the in-process L1 cache: a RangeCache over the shared bounded RAM backend, namespaced by ns (e.g. "lakehouse", "static") so distinct wrap sites share one RAM budget without their keys colliding.

Returns origin unchanged when L1 is disabled (MICROMEGAS_OBJECT_CACHE_L1_MB=0).