stats property

({int evictions, int hits, int misses}) get stats

Diagnostic counters since construction. Useful for benchmarks and regression tests; do not export through telemetry without rolling.

Implementation

({int hits, int misses, int evictions}) get stats => (
      hits: _hits,
      misses: _misses,
      evictions: _evictions,
    );