lru-cache
    Preparing search index...

    Type Alias SizeCalculator<K, V>

    SizeCalculator: (value: V, key: K) => Size

    A function that returns the effective calculated size of an entry in the cache.

    Type Parameters

    • K
    • V

    Type declaration

      • (value: V, key: K): Size
      • Parameters

        • value: V
        • key: K

        Returns Size