Skip to content

Commit

Permalink
updated issuance module with redis cache
Browse files Browse the repository at this point in the history
Signed-off-by: Nishad <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
nishad-ayanworks authored and KulkarniShashank committed Sep 11, 2024
1 parent 03a51f4 commit 42b1840
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/issuance/src/issuance.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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]
Expand Down

0 comments on commit 42b1840

Please sign in to comment.