API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classIndexedDbKeyValueStore
KeyValueStore over IndexedDB (via IndexedDbStore), 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 (via IndexedDbStore), 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: string | IndexedDbKeyValueStoreOptions): IndexedDbKeyValueStore clear(): Promise<boolean> delete(key: string): Promise<boolean> destroy(): void get(key: string): Promise<T | null> has(key: string): Promise<boolean> set(key: string, value: unknown): Promise<void>