| 12345678910111213141516171819202122232425262728293031323334353637 |
- // apps/box-mgnt-api/src/cache-sync/cache-sync.module.ts
- import { Module } from '@nestjs/common';
- import { CacheSyncService } from './cache-sync.service';
- import { CacheSyncDebugController } from './cache-sync-debug.controller';
- import { CacheChecklistService } from './cache-checklist.service';
- import { CacheChecklistController } from './cache-checklist.controller';
- import { VideoCacheAdminController } from './admin/video-cache-admin.controller';
- import { CacheManagerModule } from '@box/core/cache/cache-manager.module';
- /**
- * CacheSyncModule
- *
- * Production-safe cache synchronization module.
- *
- * Contains:
- * - CacheSyncService: Background cache sync job
- * - CacheSyncDebugController: Debug-only checklist endpoints
- * - CacheChecklistService: Cache integrity checking
- * - VideoCacheAdminController: PRODUCTION admin endpoint for cache rebuild
- *
- * Dev-only endpoints (debugging, statistics, raw key inspection) are isolated
- * in DevVideoCacheModule and conditionally imported in AppModule based on NODE_ENV.
- *
- * See also: apps/box-mgnt-api/src/dev/dev-video-cache.module.ts
- */
- @Module({
- imports: [CacheManagerModule],
- controllers: [
- CacheSyncDebugController,
- CacheChecklistController,
- VideoCacheAdminController,
- ],
- providers: [CacheSyncService, CacheChecklistService],
- exports: [CacheSyncService, CacheChecklistService],
- })
- export class CacheSyncModule {}
|