redis pt 2: read cache wiring & event based invalidations
This commit is contained in:
5
src/common/cache/cache.module.ts
vendored
5
src/common/cache/cache.module.ts
vendored
@@ -1,12 +1,13 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { RedisModule } from '../../database/redis.module';
|
||||
import { CacheTagsService } from './cache-tags.service';
|
||||
import { CacheService } from './cache.service';
|
||||
import { RedisThrottlerStorage } from './redis-throttler.storage';
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
imports: [RedisModule],
|
||||
providers: [CacheService, RedisThrottlerStorage],
|
||||
exports: [CacheService, RedisThrottlerStorage],
|
||||
providers: [CacheService, CacheTagsService, RedisThrottlerStorage],
|
||||
exports: [CacheService, CacheTagsService, RedisThrottlerStorage],
|
||||
})
|
||||
export class CacheModule {}
|
||||
|
||||
Reference in New Issue
Block a user