import { Global, Module } from '@nestjs/common'; import { CatalogCacheService } from './catalog-cache.service'; /** * Global so the accounting module can invalidate the storefront catalogue * without importing CatalogModule (which itself depends on the accounting * module). */ @Global() @Module({ providers: [CatalogCacheService], exports: [CatalogCacheService], }) export class CatalogCacheModule {}