remove method

  1. @override
Future<bool> remove(
  1. String key
)
override

Removes a specific value from the cache.

key - Unique identifier of the value to remove

Returns true if removed successfully, false if it didn't exist

Implementation

@override
Future<bool> remove(String key) async {
  final existed = _cache.containsKey(key);

  if (existed) {
    _cache.remove(key);
    _removeFromAccessTracking(key);
  }

  return existed;
}