redis pt 2: read cache wiring & event based invalidations

This commit is contained in:
2026-03-30 18:18:46 +08:00
parent c2bafc5bb1
commit d12d3e1ec7
14 changed files with 475 additions and 8 deletions

View File

@@ -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 {}