onWillRemove method

  1. @override
void onWillRemove(
  1. TIdentifier id
)
override

Custom logic to be executed before a Cache.remove.

Implementation

@override
void onWillRemove(TIdentifier id) {
  // id will be removed, removing it again is unnecessary.
  _removalQueue.remove(id);
}