statistics property

Map<String, dynamic> get statistics

Gets cache statistics.

Implementation

static Map<String, dynamic> get statistics => {
      'size': size,
      'maxSize': maxCacheSize,
      'enabled': enabled,
      'utilization': maxCacheSize > 0 ? '${(size / maxCacheSize * 100).toStringAsFixed(1)}%' : '0%',
    };