flushHits method

  1. @override
void flushHits(
  1. List<String> hitIds
)
override

Implementation

@override
void flushHits(List<String> hitIds) async {
  await _checkDatabase();
  hitIds.forEach((element) {
    dbMgt.deleteHitWithId(element, 'table_hits').whenComplete(() {
      Flagship.logger(
          Level.DEBUG, "The hit with an id = $element is removed from cache");
    });
  });
}