From 6fab45f2b4a31906729cc86f9762e73ce77360c2 Mon Sep 17 00:00:00 2001 From: Matthieu Cutin Date: Tue, 5 Aug 2025 11:54:09 +0200 Subject: [PATCH] fix: Caching/Using alternative Cache stores - issue #14580 nestjs/nest --- content/techniques/caching.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'), ], }; },