Hierarchy

  • IndexedDbCacheWorker

Constructors

Properties

committing: boolean

Is there a running readwrite transaction? If so don't start another one or we may commit records multiple times (wasting time).

db: any

Reference to the open database.

index: any

The local index is used to keep track of which keys are in the object store(s). This is initialised when the database is opened and updated when set requests are made. It is used to perform early rejects on get requests we know will fail (because there is no key in the store), avoiding expensive database transactions.

memoryCache: any

A dictionary of records that are waiting to be committed.

numReadTransactions: number

How many read transactions are currently created. We always want read transactions to take priority over writes, so when this is non-zero the write chain is interrupted.

objectStoreName: string

Name of the object store for the cache. This is set once when the db is created.

Methods

Generated using TypeDoc