interface CacheConfiguration {
    byteCapacity?: number;
    maxNumberOfEntries?: number;
    ttl?: number;
}

Properties

byteCapacity?: number

The capacity, in bytes, of the cache.

DEFAULT_CAPACITY

maxNumberOfEntries?: number

The capacity, in number of entries, of the cache.

DEFAULT_MAX_ENTRIES

ttl?: number

The default TTL (time to live) of entries, in milliseconds. Can be overriden for each entry (see CacheOptions).

DEFAULT_TTL