remove method
Removes metadata from the cache for the given URL
Returns true if the item was in the cache and was removed
Implementation
Future<bool> remove(String url) async {
final normalizedUrl = _normalizeUrl(url);
final cacheKey = _getCacheKey(normalizedUrl);
final wasInMemory = _memoryCache.remove(normalizedUrl) != null;
var wasInBox = false;
if (_box != null && _box!.isOpen) {
wasInBox = _box!.containsKey(cacheKey);
if (wasInBox) {
await _box!.delete(cacheKey);
}
}
return wasInMemory || wasInBox;
}