API ReferenceFunctions
idbPut
Function: idbPut()
function idbPut(
sandbox: Sandbox,
dbName: string,
storeName: string,
key: string,
value: unknown): Promise<void>;Defined in: storage/idb-utils.ts:196
Write value into the given Sandbox's IndexedDB at (dbName, storeName, key).
Parameters
| Parameter | Type | Description |
|---|---|---|
sandbox | Sandbox | The Sandbox whose IDB shim handles the write. |
dbName | string | IndexedDB database name. |
storeName | string | Object store name within the database. Created on first use if absent. |
key | string | Record key within the object store. |
value | unknown | Any structured-cloneable value. |
Returns
Promise<void>
Example
await idbPut(sandbox, "snapcap", "fidelius", "identity", { pub, priv });