[ CacheInterface::class => Cache::class, ], 'listeners' => [ DeleteListener::class, ], 'annotations' => [ 'scan' => [ 'collectors' => [ CacheListenerCollector::class, ], ], ], 'aspects' => [ CacheableAspect::class, CacheAheadAspect::class, CacheEvictAspect::class, CachePutAspect::class, FailCacheAspect::class, ], 'publish' => [ [ 'id' => 'config', 'description' => 'The config for cache.', 'source' => __DIR__ . '/../publish/cache.php', 'destination' => BASE_PATH . '/config/autoload/cache.php', ], ], ]; } }