Some checks failed
CI/CD Pipeline - Xpeditis PreProd / Frontend - Docker Build & Push (push) Blocked by required conditions
CI/CD Pipeline - Xpeditis PreProd / Deploy to PreProd Server (push) Blocked by required conditions
CI/CD Pipeline - Xpeditis PreProd / Run Smoke Tests (push) Blocked by required conditions
CI/CD Pipeline - Xpeditis PreProd / Backend - Build & Test (push) Failing after 5m53s
CI/CD Pipeline - Xpeditis PreProd / Backend - Docker Build & Push (push) Has been skipped
CI/CD Pipeline - Xpeditis PreProd / Frontend - Build & Test (push) Has been cancelled
- Replace all ../../domain/ imports with @domain/ across 67 files - Configure NestJS to use tsconfig.build.json with rootDir - Add tsc-alias to resolve path aliases after build - This fixes 'Cannot find module' TypeScript compilation errors Fixed files: - 30 files in application layer - 37 files in infrastructure layer
23 lines
469 B
TypeScript
23 lines
469 B
TypeScript
/**
|
|
* Cache Module
|
|
*
|
|
* Provides Redis cache adapter as CachePort implementation
|
|
*/
|
|
|
|
import { Module, Global } from '@nestjs/common';
|
|
import { RedisCacheAdapter } from './redis-cache.adapter';
|
|
import { CACHE_PORT } from '@domain/ports/out/cache.port';
|
|
|
|
@Global()
|
|
@Module({
|
|
providers: [
|
|
{
|
|
provide: CACHE_PORT,
|
|
useClass: RedisCacheAdapter,
|
|
},
|
|
RedisCacheAdapter,
|
|
],
|
|
exports: [CACHE_PORT, RedisCacheAdapter],
|
|
})
|
|
export class CacheModule {}
|