Class Cache<PrimaryType>

Type Parameters

Constructors

Properties

Methods

Constructors

Properties

limit: number = Cache.defaultLimit

The maximum amount of documents that can be storage before erasure.

resolver: ((storedData, newData) => boolean) = Object.is

The method to use in determining data equality

Type declaration

storage: [nullish | SingleOrArray<PrimaryType>, undefined | Partial<SerializerOptions<PrimaryType>>, Partial<DataDocument<PrimaryType>>][] = []

The storage for the cache

defaultLimit: number = 10

The default max for document storage

Methods

Generated using TypeDoc