A simple counter is used to assign cross-context Ids for transactions
The host on which to find the WebWorker script.
The current state of the database behind the cache. Requests will be held so long as it is not Open. If the database is Closed, then all requests, new and old, are fulfilled empty.
Resources for in-progress get requests
The WebWorker that handles the IndexedDb requests. Each instance of this class gets its own worker.
Generated using TypeDoc
IndexedDbCache implements a cache of keyed ArrayBuffers based on IDB. The caching is performed in a WebWorker for performance reasons. This class creates that worker and provides interop via message passing, presenting a Promise- based API to any consumers.