ExtensionCache
A run-to-run cache, where the host offers one.
Exists so a source can avoid re-fetching an unchanged sub-resource — show notes, a transcript page — across scheduled runs. Values are strings; a source that wants structure serialises it.
Methods
Section titled “Methods”get(key: string): Promise<string | null>;The cached value, or null on a miss.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key | string |
Returns
Section titled “Returns”Promise<string | null>
put( key: string, value: string,ttlSeconds: number): Promise<void>;Store a value for at most ttlSeconds. The host may shorten it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key | string |
value | string |
ttlSeconds | number |
Returns
Section titled “Returns”Promise<void>