@ThreadSafe public interface EntryWeigher<K,
A class that can determine the weight of an entry. The total weight threshold is used to determine when an eviction is required.
weightOfMeasures an entry's weight to determine how many units of capacity that the key and value consumes. An entry must consume a minimum of one unit.
key- the key to weigh
value- the value to weigh
- the entry's weight