WorkflowStem.Cache (workflow_stem v0.2.0)

Copy Markdown View Source

ETS-backed cache for compiled workflow IR.

Keyed by {tenant_id, workflow_handle, artifact_hash} to enforce tenant isolation.

This is intentionally simple: hot-reload is achieved by invalidation/eviction, not code loading or module generation.

Summary

Functions

ensure_started()

@spec ensure_started() :: :ok

get(key)

invalidate(tenant_id, workflow_handle)

put(key, ir)