Skip to main content

populate_cache_from_inputs

Function populate_cache_from_inputs 

Source
pub fn populate_cache_from_inputs<'a>(
    inputs: impl Iterator<Item = (&'a str, &'a str)>,
    no_cache: bool,
)
Expand description

Load the on-disk cache, add any new (id, uri) pairs, and commit.

Best-effort: I/O failures are logged, not propagated. A no_cache of true makes the call a no-op.