Skip to content

smelt.http.cache

Tier: Host - Available in every runtime, including headless mode.

Classification: Supported - Primary alpha facade for user config and plugins.

Runtime-owned HTTP response cache. Plugins can stash bodies under arbitrary keys to dedupe repeat fetches across a session.

smelt.http.cache.read

fun(key: string): string?

Look up a cached HTTP response by key. Returns the stored string or nil if no entry exists.

smelt.http.cache.write

fun(key: string, value: string): nil

Store value in the HTTP response cache under key.