getCacheStats method

Map<String, int> getCacheStats()

Gets cache statistics for monitoring and debugging.

Implementation

Map<String, int> getCacheStats() {
  return {
    'relationship_queries': _relationshipQueryCache.length,
    'entity_existence': _entityExistenceCache.length,
    'queries': _queryCache.length,
  };
}