Skip to main content

Module cache

Module cache 

Source
Expand description

LRU cache for analysis results indexed by path, modification time, and mode.

Provides thread-safe, capacity-bounded caching of file analysis outputs using LRU eviction. Recovers gracefully from poisoned mutex conditions.

Re-exports§

pub use crate::cache_disk::DiskCache;

Structs§

AnalysisCache
LRU cache for file analysis results with mutex protection.
CacheKey
Cache key combining path, modification time, and analysis mode.
CallGraphCache
L1 in-memory LRU cache for call graph results. Capacity is controlled via APTU_CODER_SYMBOL_CACHE_CAPACITY env var (default 32).
CallGraphCacheKey
Cache key for call graph analysis combining path, parameters, and file mtimes.
DirectoryCacheKey
Cache key for directory analysis combining file mtimes, mode, and max_depth.

Enums§

CacheTier
Indicates which cache tier served the result.

Functions§

parse_cache_capacity
Parse an LRU cache capacity from an environment variable.

Type Aliases§

CallGraphCacheValue
Cached call graph result: the fully-built FocusedAnalysisOutput. CallGraph is not serializable, so caching is L1 memory only.