pdfrx_web
    Preparing search index...

    Class PdfIndexedDbTextAssetCache

    Browser IndexedDB cache for downloaded text-appearance assets.

    Implements

    Index
    • Reads an asset without exposing the cache's mutable backing storage.

      Parameters

      • key: string

        The stable asset key.

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

      A copy of the cached bytes, or null on a cache miss.

    • Stores a copy of an asset.

      Parameters

      • key: string

        The stable asset key.

      • data: Uint8Array

        The bytes to cache.

      Returns Promise<void>

      A promise that resolves after the write completes.