API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classIndexedDbKeyValueStore
KeyValueStore over IndexedDB, using the **structured-clone** algorithm. Unlike WebStorageStore, values are stored *directly* - no `JSON.stringify`. So `Blob`s, `ArrayBuffer`s, typed arrays and nested objects round-trip natively, and there is no string-size ceiling beyond the (large) IndexedDB quota. Use this for binary or large saves; use `WebStorageStore` for small synchronous JSON.
import { IndexedDbKeyValueStore } from '@codexo/exojs'KeyValueStore over IndexedDB, using the **structured-clone** algorithm.
Unlike WebStorageStore, values are stored *directly* - no `JSON.stringify`. So `Blob`s, `ArrayBuffer`s, typed arrays and nested objects round-trip natively, and there is no string-size ceiling beyond the (large) IndexedDB quota. Use this for binary or large saves; use `WebStorageStore` for small synchronous JSON.
new(nameOrOptions: IndexedDbKeyValueStoreOptionsConstruction options for IndexedDbKeyValueStore. | string): IndexedDbKeyValueStoreclear(): Promise<boolean>delete(key: string): Promise<boolean>destroy(): voidget(key: string): Promise<T | null>has(key: string): Promise<boolean>set(key: string, value: unknown): Promise<void>