diff --git a/content/techniques/caching.md b/content/techniques/caching.md index e3d49ad121..622ed39ddb 100644 --- a/content/techniques/caching.md +++ b/content/techniques/caching.md @@ -236,7 +236,7 @@ With this in place, you can register the `CacheModule` with multiple stores as s import { Module } from '@nestjs/common'; import { CacheModule } from '@nestjs/cache-manager'; import { AppController } from './app.controller'; -import { createKeyv } from '@keyv/redis'; +import KeyvRedis from '@keyv/redis'; import { Keyv } from 'keyv'; import { CacheableMemory } from 'cacheable'; @@ -249,7 +249,7 @@ import { CacheableMemory } from 'cacheable'; new Keyv({ store: new CacheableMemory({ ttl: 60000, lruSize: 5000 }), }), - createKeyv('redis://localhost:6379'), + new KeyvRedis('redis://localhost:6379'), ], }; },