remove method
Removes the mapping for a key from this cache if it is present.
key
: key whose mapping is to be removed from the cache
Returns true
if this cache previously associated the key
, or false
if the cache contained no mapping for the key
. The cache will not
contain a mapping for the specified key
once the call returns.
Implementation
@override
Future<void> remove(String key) {
return _primary.remove(key).then((any) => _secondary.remove(key));
}