API reference

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

I

interfaceCacheLayout

@codexo/exojs / assets / stable

How one acquired representation is laid out in persistent storage. This is the boundary between what an asset's source data IS - the asset type's and its codec's business - and how a store physically holds it. A layout decides how many records a representation occupies, what they are called, and how a complete representation is reassembled from them. It knows nothing about IndexedDB, network ordering or resource construction. ## Versioning version is part of every record's persistent identity, so raising it makes previously written records unreachable rather than decoding them under rules they were not written for. There is no migration path by design: a cache is reconstructible, and a version bump simply misses and re-acquires. Most types need exactly one record and should use SingleEntryLayout.

1
props
2
methods
0
events
Import
import { CacheLayout } from '@codexo/exojs'

How one acquired representation is laid out in persistent storage.

This is the boundary between what an asset's source data IS - the asset type's and its codec's business - and how a store physically holds it. A layout decides how many records a representation occupies, what they are called, and how a complete representation is reassembled from them. It knows nothing about IndexedDB, network ordering or resource construction.

## Versioning

version is part of every record's persistent identity, so raising it makes previously written records unreachable rather than decoding them under rules they were not written for. There is no migration path by design: a cache is reconstructible, and a version bump simply misses and re-acquires.

Most types need exactly one record and should use SingleEntryLayout.

Methods2
Properties1
version: number
The layout version, part of every record key this layout reads or writes.
Source