14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { CacheService } from './cache.service';
|
|
import { SmsService } from './sms.service';
|
|
import { CacheModule } from '@nestjs/cache-manager';
|
|
import { cacheConfig } from '../../config/cache.config';
|
|
|
|
@Module({
|
|
imports: [CacheModule.registerAsync(cacheConfig())],
|
|
controllers: [],
|
|
providers: [CacheService, SmsService],
|
|
exports: [CacheService, SmsService],
|
|
})
|
|
export class UtilsModule {}
|