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§
Constants§
- BYTECODE_
VERSION - On-disk format version for cached fusevm chunks. Bumped when fusevm’s
bincode layout changes in a non-backward-compat way. Cached blobs are
stored as
[VERSION_BYTE, bincode_bytes...]; readers verify the prefix and treat any mismatch as a cache miss (the source file is recompiled).
Functions§
- default_
cache_ path - Default path for the plugin cache db.
- file_
mtime - Get mtime from file metadata as (secs, nsecs).