Skip to content

Commit

Permalink
feat: 루트 캐싱 TTL > 5분
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed Jan 26, 2024
1 parent 26675a9 commit af30d10
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ import { DatabaseModule } from './database/database.module';
import { CacheModule } from '@nestjs/cache-manager';

@Module({
imports: [CacheModule.register(), UserModule, PokerModule, DatabaseModule],
imports: [
CacheModule.register({
ttl: 60 * 50,
max: 10,
}),
UserModule,
PokerModule,
DatabaseModule,
],
controllers: [AppController],
providers: [AppService],
})
Expand Down

0 comments on commit af30d10

Please sign in to comment.