@lelantos-org/sdk / prover / ArtifactCache
Interface: ArtifactCache
Defined in: @lelantos-org/sdk/dist/prover/artifact-cache.d.ts:8
Persistence port for artifact bytes, keyed by absolute URL.
Implement this to store artifacts outside the Cache API (IndexedDB, OPFS, an Electron userData directory) and install it with configureArtifactCache. Neither method may throw: a storage failure must degrade to a network fetch.
Methods
get()
ts
get(url): Promise<Uint8Array<ArrayBufferLike> | null>;Defined in: @lelantos-org/sdk/dist/prover/artifact-cache.d.ts:10
Cached bytes for url, or null on a miss. Must not throw.
Parameters
| Parameter | Type |
|---|---|
url | string |
Returns
Promise<Uint8Array<ArrayBufferLike> | null>
put()
ts
put(url, bytes): Promise<void>;Defined in: @lelantos-org/sdk/dist/prover/artifact-cache.d.ts:12
Store bytes under url. Must not throw.
Parameters
| Parameter | Type |
|---|---|
url | string |
bytes | Uint8Array |
Returns
Promise<void>