Skip to main content

load_cache

Function load_cache 

Source
pub fn load_cache(expected_fingerprint: &str) -> Option<CmdCache>
Expand description

Load and validate a cache from the environment variable.

Returns None if:

  • env var is absent or empty
  • JSON is malformed
  • version != 1
  • fingerprint does not match expected