getStats method

Map<String, dynamic> getStats()

Returns statistics about the cache.

Useful for monitoring and debugging.

Implementation

Map<String, dynamic> getStats() {
  return {
    'size': size,
    'totalKeys': _storageBox.length,
    'boxName': _storageBox.name,
    'isOpen': _storageBox.isOpen,
    'path': _storageBox.path,
  };
}