API reference

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

C

classIndexedDbStore

@codexo/exojs / resources / stable

CacheStore implementation that persists processed asset data in an IndexedDB database via IndexedDbDatabase. Pass an instance to LoaderOptions.cache to enable cross-session asset caching with no additional configuration beyond a database name.

0
props
5
methods
0
events
Import
import { IndexedDbStore } from '@codexo/exojs'

CacheStore implementation that persists processed asset data in an IndexedDB database via IndexedDbDatabase.

Pass an instance to LoaderOptions.cache to enable cross-session asset caching with no additional configuration beyond a database name.

Constructors 1
new(nameOrOptions: string | IndexedDbStoreOptions): IndexedDbStore
Methods 5
clear(storageName: string): Promise<boolean>
delete(storageName: string, key: string): Promise<boolean>
destroy(): void
load(storageName: string, key: string): Promise<unknown>
save(storageName: string, key: string, data: unknown): Promise<void>
Source