calculateCacheUsedMemory method

int calculateCacheUsedMemory()

Returns the current cache usage of memory.

Implementation

int calculateCacheUsedMemory() {
  var total = 0;
  for (var entry in _cache.entries) {
    var memory = entry.key.memorySize() + entry.value.memorySize();
    total += memory;
  }
  return total;
}