IFClite TypeScript API
    Preparing search index...

    Class LayeredBlobStore

    Read-through / write-through layering: writes go to local and remote in parallel; reads check local first and fall back to remote, caching the result locally on hit.

    This is what we recommend for browser apps: instant local reads, durable remote storage, and offline-first semantics for already-fetched blobs.

    Implements

    Index
    • Parameters

      • hash: string

      Returns Promise<boolean>

    • Parameters

      • hash: string

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

    • Parameters

      • hash: string

      Returns Promise<boolean>

    • Recompute this backend's content identity without writing the blob.

      Parameters

      • bytes: Uint8Array

      Returns string

    • List currently-known blob hashes; ordering is implementation-defined.

      Returns Promise<string[]>