Cache key
Check if cached data is valid (exists and matches current hash of the invalidation file).
Cache key (e.g., 'pnpm-list')
File path whose hash determines cache validity (e.g., lockfile path)
Read cached data for a given key.
Cache key
Read permanent cache if it exists.
Cache key
Write data to cache along with hash of the invalidation file.
Cache key
Data to cache
File path whose hash determines cache validity
Write data to cache without invalidation file (cache permanently).
Cache key
Data to cache
Check if permanent cache exists.