getCacheStats static method

Map<String, dynamic> getCacheStats()

Returns cache statistics for performance monitoring.

Implementation

static Map<String, dynamic> getCacheStats() {
  return {
    'size': _nameNodeCache.length,
    'maxSize': _maxCacheSize,
    'utilizationPercent': (_nameNodeCache.length / _maxCacheSize * 100)
        .round(),
  };
}