getRequestedHits method
Implementation
int getRequestedHits([String? key]) {
if (key == null || key.isEmpty) {
var counter = 0;
for (var i in logs.entries) {
if (i.key.contains(HitType.request.name)) {
counter = counter + i.value;
}
}
return counter;
} else {
return logs["$key-${HitType.request.name}"] ?? 0;
}
}