cache_lookup

Function cache_lookup 

Source
pub fn cache_lookup(
    cache: &CacheDir,
    cache_key: &str,
    cli_label: &str,
) -> Option<CacheEntry>
Expand description

Look up a cache key, checking local first, then remote (if enabled).

cli_label prefixes diagnostic output (e.g. "ktstr" or "cargo ktstr").