@bodil/core
    Preparing search index...

    Type Alias LRUCacheOptions<V>

    Configuration for the LRUCache.

    type LRUCacheOptions<V> = {
        disposeFunction?: (value: V) => void;
        maxLength?: number;
    }

    Type Parameters

    • V

    Properties

    disposeFunction?: (value: V) => void

    An optional dispose function to be called when a value is removed from the cache. Defaults to disposing of values which implement Disposable, and doing nothing otherwise.

    maxLength?: number

    The maximum size of the cache.