totalKb property

double get totalKb

Calculates the total cache size in kilobytes.

This method combines the maxKb and maxMb properties, converts the total cache size into bytes, and then converts back to megabytes for a comprehensive size in KB.

Returns: The total cache size in kilobytes (double).

Implementation

double get totalKb {
  final totalMbBytes = maxMb * CacheSizeConstants.bytesPerMb;
  final totalKbBytes = maxKb * CacheSizeConstants.bytesPerKb;

  final totalBytes = totalMbBytes + totalKbBytes;

  final totalKb = totalBytes.toDouble() / CacheSizeConstants.bytesPerKb;
  return totalKb.roundToDecimal();
}