#TypeError: cacheManager.caching is not a function

4 messages · Page 1 of 1 (latest)

charred plume
#

@Module({
imports: [CacheModule.register({ ttl: 604800000 })],
controllers: [AreaController],
providers: [AreaService, PrismaService],
})
export class AreaModule {}

@Get()
@CacheTTL(604800000)
@UseInterceptors(CacheInterceptor)
async getAll(): Promise<city[]> {
return await this.areaService.getAll();
}

#

[Nest] 22452 - 2024/11/18 15:12:03 ERROR [ExceptionHandler] cacheManager.caching is not a function TypeError: cacheManager.caching is not a function

wicked osprey
#

Downgrade to v5