Expand description
Plugin source cache — stores side effects of source/. in SQLite.
First source: execute normally, capture state delta, write cache on worker thread. Subsequent sources: check mtime, replay cached side effects in microseconds.
Cache key: (canonical_path, mtime_secs, mtime_nsecs) Cache invalidation: mtime mismatch → re-source, update cache.
Structs§
- Plugin
Cache - SQLite-backed plugin cache.
- Plugin
Delta - Side effects captured from sourcing a plugin file.
Enums§
Functions§
- default_
cache_ path - Default path for the plugin cache db.
- file_
mtime - Get mtime from file metadata as (secs, nsecs).