onWillGet method

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

Custom logic to be executed before a Cache.get or Cache.getAsync.

Implementation

@override
void onWillGet(TIdentifier id) {
  // A get has been called for id, removing it is now unnecessary.
  _removalQueue.remove(id);
}