API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classIndexedDbKeyValueStore

@codexo/exojs / resources / stable

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.

0
props
6
methods
0
events
Import
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.

Constructors 1
new(nameOrOptions: string | IndexedDbKeyValueStoreOptions): IndexedDbKeyValueStore
Methods 6
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>
Source