This package provides a NestJS module for caching.
npm install @sandumo/nestjs-cache-moduleThis package provides a NestJS module for interacting with cache.
``bash`
npm install @sandumo/nestjs-cache-module
`typescript
import { CacheModule } from '@sandumo/nestjs-cache-module';
@Module({
imports: [
CacheModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (configService: ConfigService) => ({
redisUrl: configService.get('REDIS_URL'),
}),
}),
],
})
``