hitRate property

double get hitRate

Gets the cache hit rate during the period.

Implementation

double get hitRate {
  if (totalOperations == 0) return 0;
  return hitCount / totalOperations;
}