get method
return the element identified by key
Implementation
@override
V? get(K key) {
CacheEntry<K, V>? entry = storage[key];
if (entry == null) {
return null;
}
entry = beforeGet(entry);
if (entry == null) {
return null;
}
return entry.value;
}