API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceContainerBlockStore
Where a reader keeps container blocks between visits. A block is addressed by its hash, never by the pack it came from, so two packs that share a block share the stored entry - which is what makes an update cost only the blocks whose contents actually changed. Every method may fail or answer nothing without that being an error: a store is an optimisation, and a reader that gets nothing back simply fetches.
import { ContainerBlockStore } from '@codexo/exojs'Where a reader keeps container blocks between visits.
A block is addressed by its hash, never by the pack it came from, so two packs that share a block share the stored entry - which is what makes an update cost only the blocks whose contents actually changed.
Every method may fail or answer nothing without that being an error: a store is an optimisation, and a reader that gets nothing back simply fetches.
get(hash: string): Promise<Uint8Array<ArrayBuffer> | undefined>put(hash: string, bytes: Uint8Array): Promise<void>