Skip to content

smelt.http.cache

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

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

smelt.http.cache.get

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.put

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

Store value in the HTTP response cache under key.