redis pt 1
This commit is contained in:
12
src/common/cache/cache.module.ts
vendored
Normal file
12
src/common/cache/cache.module.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { RedisModule } from '../../database/redis.module';
|
||||
import { CacheService } from './cache.service';
|
||||
import { RedisThrottlerStorage } from './redis-throttler.storage';
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
imports: [RedisModule],
|
||||
providers: [CacheService, RedisThrottlerStorage],
|
||||
exports: [CacheService, RedisThrottlerStorage],
|
||||
})
|
||||
export class CacheModule {}
|
||||
Reference in New Issue
Block a user