cacheStats property

(int, int, double) get cacheStats

Get cache statistics for performance monitoring

Implementation

static (int hits, int misses, double hitRate) get cacheStats {
  final total = _cacheHits + _cacheMisses;
  final hitRate = total > 0 ? _cacheHits / total : 0.0;
  return (_cacheHits, _cacheMisses, hitRate);
}