Type Alias SizeCalculator<K, V>

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

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

Type Parameters

  • K
  • V