Creates a cache backed by a browser IndexedDB database.
The IndexedDB database name. Defaults to pdfrx.text-assets.
Reads an asset without exposing the cache's mutable backing storage.
The stable asset key.
A copy of the cached bytes, or null on a cache miss.
Stores a copy of an asset.
The stable asset key.
The bytes to cache.
A promise that resolves after the write completes.
Browser IndexedDB cache for downloaded text-appearance assets.