@lelantos-org/sdk / prover / configureArtifactCache
Function: configureArtifactCache()
ts
function configureArtifactCache(cache): void;Defined in: @lelantos-org/sdk/dist/prover/artifact-bytes.d.ts:14
Install (or disable) persistence for downloaded artifacts.
Defaults to the Cache API where available, so a reload or the prover worker skips the download. Pass false to opt out, or an ArtifactCache to store the bytes elsewhere.
The setting is per module realm, and a Web Worker is a separate realm. An ArtifactCache cannot cross postMessage: call this inside the worker to install one there, or pass cacheArtifacts: false to WorkerProver to opt out.
Parameters
| Parameter | Type |
|---|---|
cache | false | ArtifactCache |
Returns
void