hitRatio property

double get hitRatio

Ratio of cache hits to total requests (between 0.0 and 1.0).

Implementation

double get hitRatio => totalRequests == 0 ? 0.0 : hits / totalRequests;