cacheHits method

  1. @override
void cacheHits(
  1. Map<String, Map<String, Object>> hits
)
override

Implementation

@override
void cacheHits(Map<String, Map<String, Object>> hits) async {
  // Flagship.logger(Level.DEBUG, JsonEncoder().convert(hits).toString(),
  //     isJsonString: true);
  await _checkDatabase();
  hits.forEach((key, value) {
    dbMgt.insertHitMap({'id': key, 'data_hit': jsonEncode(value)});
  });
}