Skip to main content

Module plugin_cache

Module plugin_cache 

Source
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§

PluginCache
SQLite-backed plugin cache.
PluginDelta
Side effects captured from sourcing a plugin file.

Enums§

AliasKind

Functions§

default_cache_path
Default path for the plugin cache db.
file_mtime
Get mtime from file metadata as (secs, nsecs).