Metastatic. Cache
(Metastatic v0.26.0)
View Source
AST Caching layer for Metastatic.
Caches the results of parsing and abstracting source code to MetaAST (M2). Uses a public ETS table for high-performance memory cache.
Summary
Functions
Clear all cached entries.
Get cached abstraction result (MetaAST + Metadata) for a source code string and language.
Initialize the cache ETS table. Called automatically during application startup.
Store abstraction result in cache.
Functions
@spec clear() :: :ok
Clear all cached entries.
Get cached abstraction result (MetaAST + Metadata) for a source code string and language.
Returns {:ok, meta_ast, metadata} if found, or {:error, :not_found}.
@spec init() :: :ok
Initialize the cache ETS table. Called automatically during application startup.
Store abstraction result in cache.