onCapacity method
removes the entry denoted by key
. This is called if the capacity is reached.
Implementation
@override
CacheEntry<K, V>? onCapacity(K key) {
return remove(key);
}
removes the entry denoted by key
. This is called if the capacity is reached.
@override
CacheEntry<K, V>? onCapacity(K key) {
return remove(key);
}