@GwtCompatible public interface Weigher<K,V>
Calculates the weights of cache entries.
int
weigh(K key, V value)
int weigh(K key, V value)
Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply relative to each other.