From 42b18408689f2e2d100cc813411ee8e717be985b Mon Sep 17 00:00:00 2001 From: Nishad Date: Wed, 22 Nov 2023 03:20:17 +0530 Subject: [PATCH] updated issuance module with redis cache Signed-off-by: Nishad Signed-off-by: KulkarniShashank --- apps/issuance/src/issuance.module.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/issuance/src/issuance.module.ts b/apps/issuance/src/issuance.module.ts index 1b4714c04..d384a8980 100644 --- a/apps/issuance/src/issuance.module.ts +++ b/apps/issuance/src/issuance.module.ts @@ -8,6 +8,11 @@ import { IssuanceRepository } from './issuance.repository'; import { IssuanceService } from './issuance.service'; import { OutOfBandIssuance } from '../templates/out-of-band-issuance.template'; import { EmailDto } from '@credebl/common/dtos/email.dto'; +import { BullModule } from '@nestjs/bull'; +import { CacheModule } from '@nestjs/cache-manager'; +import * as redisStore from 'cache-manager-redis-store'; +import { BulkIssuanceProcessor } from './issuance.processor'; +import { AwsService } from '@credebl/aws'; @Module({ imports: [ @@ -19,7 +24,11 @@ import { EmailDto } from '@credebl/common/dtos/email.dto'; options: getNatsOptions(process.env.ISSUANCE_NKEY_SEED) } ]), - CommonModule + CommonModule, + CacheModule.register({ store: redisStore, host: process.env.REDIS_HOST, port: process.env.REDIS_PORT }), + BullModule.registerQueue({ + name: 'bulk-issuance' + }) ], controllers: [IssuanceController], providers: [IssuanceService, IssuanceRepository, PrismaService, Logger, OutOfBandIssuance, EmailDto]