Skip to main content

load_cached

Function load_cached 

Source
pub fn load_cached<T: DeserializeOwned>(path: &Path, root: &Path) -> Option<T>
Expand description

Load a cached extraction result for path, returning None on cache miss.

A cache miss occurs when:

  • The source file cannot be read (hash fails).
  • No cache entry exists for the current content hash.
  • The cached JSON cannot be deserialized into T.