boot method

  1. @override
Future<void> boot(
  1. ContainerInterface container
)
override

Called after all providers are registered (for initialization).

Implementation

@override
Future<void> boot(ContainerInterface container) async {
  // Initialize default cache configuration if available
  final config = container.resolve<ConfigInterface>();

  final cacheManager = container.resolve<CacheManager>();
  // Load configuration if config is available
  // This assumes the config has a 'cache' section
  try {
    cacheManager.loadFromConfig(config);
  } catch (e) {
    // Configuration loading failed, but don't break the application
    // The cache system can still be used with manual driver registration
  }
}