Skip to main content

get_or_background

Function get_or_background 

Source
pub fn get_or_background(
    cache: &SharedBm25Cache,
    root: &Path,
) -> Option<Arc<BM25Index>>
Expand description

Get index from cache (fresh or stale), triggering background rebuild if stale. Returns None only if no cache entry exists at all.