Interface ICachedOptions<T>

interface ICachedOptions<T> {
    cacheFilter?: ((holds: T) => boolean);
    cacheSize?: number;
}

Type Parameters

  • T

Properties

cacheFilter?: ((holds: T) => boolean)

Optional filter function to determine if an item should be cached. Returns true to cache the item, false otherwise.

cacheSize?: number

Optional maximum cache size. If not set, the cache is unlimited.