load_official_json_cache

Function load_official_json_cache 

Source
pub fn load_official_json_cache(cache_path: &Path) -> Option<Value>
Expand description

What: Load previously cached official package JSON from disk.

Inputs:

  • cache_path: Path to the cache file.

Output:

  • Some(Value) if cache exists and is valid JSON; None otherwise.

Details:

  • Returns None on file read errors or JSON parse errors.