Files
AFFiNE-Mirror/packages/backend/server/src/fundamentals/cache/index.ts
2024-04-17 16:32:26 +08:00

15 lines
417 B
TypeScript

import { Global, Module } from '@nestjs/common';
import { Cache, SessionCache } from './instances';
import { CacheInterceptor } from './interceptor';
@Global()
@Module({
providers: [Cache, SessionCache, CacheInterceptor],
exports: [Cache, SessionCache, CacheInterceptor],
})
export class CacheModule {}
export { Cache, SessionCache };
export { CacheInterceptor, MakeCache, PreventCache } from './interceptor';