get method
Get a cache entry by its key.
Returns the stored entry, or null if it is not found. Cache checks expiration before returning its value.
Implementation
@override
Future<CacheEntry<T>?> get(String key) async {
final entry = _cache.remove(key);
if (entry != null) _cache[key] = entry;
return entry;
}