check_cache

Function check_cache 

Source
pub fn check_cache(
    task: &Task,
    digest: &str,
    cache_root: &Path,
    policy_override: Option<CachePolicy>,
) -> CacheResult
Expand description

Check cache before execution based on policy

§Arguments

  • task - The IR task definition
  • digest - Pre-computed digest for this task
  • cache_root - Root directory for cache storage
  • policy_override - Optional global policy override

§Returns

CacheResult indicating whether a cache hit was found