onCacheHit method
Implementation
@override
void onCacheHit(Hit hitToBeCached) {
// Before cache the hit we save also the date creation
var bodyToCache = hitToBeCached.bodyTrack;
if (hitToBeCached.createdAt != null) {
bodyToCache.addEntries(
{"createdAt": hitToBeCached.createdAt.toString()}.entries);
}
// Cache hits
fsCacheHit?.cacheHits({hitToBeCached.id: bodyToCache});
}