Interface CacheOptions

Cache decorator options (IndexedDB)

interface CacheOptions {
    level: number;
    maxAge: number;
    version?: number;
}

Properties

Properties

level: number

The priority of the cache, the higher the priority, the lower the level

maxAge: number

The maximum age of the cache, in milliseconds

version?: number

The version of the cache, default is 1

Generated using TypeDoc