xpeditis2.0/apps/backend/src/infrastructure/cache/cache.module.ts
David-Henri ARNAUD 1044900e98 feature phase
2025-10-08 16:56:27 +02:00

22 lines
412 B
TypeScript

/**
* Cache Module
*
* Provides Redis cache adapter as CachePort implementation
*/
import { Module, Global } from '@nestjs/common';
import { RedisCacheAdapter } from './redis-cache.adapter';
@Global()
@Module({
providers: [
{
provide: 'CachePort',
useClass: RedisCacheAdapter,
},
RedisCacheAdapter,
],
exports: ['CachePort', RedisCacheAdapter],
})
export class CacheModule {}