remove method
Drops the entry for key
if it exists and can be removed. If the entry
for key
is currently being edited, that edit will complete normally but
its value will not be stored.
Implementation
Future<bool> remove(String key) => _lock.synchronized(() async {
await _initialize();
_checkNotClosed();
_validateKey(key);
final entry = _lruEntries[key];
if (entry == null) return false;
final removed = await _removeEntry(entry);
if (removed) {
_mostRecentTrimFailed = false;
}
return removed;
});