Skip to main content

Module cache

Module cache 

Source
Expand description

Three-tier disk cache for dependency graphs.

Tier 1 caches the entire graph with file mtimes for a stat-only fast path. Tier 1.5 incrementally re-parses only changed files when imports are stable. Tier 2 caches per-file parse and resolve results so single-file edits skip the resolver entirely.

Structs§

CacheWriteHandle
Handle for a background cache write. Joins the write thread on drop to ensure the cache file is fully written before process exit.
ParseCache

Enums§

GraphCacheResult

Functions§

cache_path