hitRate property
double
get
hitRate
Get cache hit rate (0.0 to 1.0)
Implementation
double get hitRate {
final total = _hits + _misses;
if (total == 0) return 0.0;
return _hits / total;
}
Get cache hit rate (0.0 to 1.0)
double get hitRate {
final total = _hits + _misses;
if (total == 0) return 0.0;
return _hits / total;
}