onDidRemove method

  1. @override
Future<Null> onDidRemove(
  1. TIdentifier id,
  2. TValue value
)
override

Custom logic to be executed after a Cache.remove.

This indicates that the TIdentifier, TValue pair are no longer in the cache.

Implementation

@override
Future<Null> onDidRemove(TIdentifier id, TValue value) async {
  _count.remove(id);
}