File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Provider } from '@nestjs/common';
22import { loadPackage } from '@nestjs/common/utils/load-package.util' ;
33import { CACHE_MANAGER } from './cache.constants' ;
44import { MODULE_OPTIONS_TOKEN } from './cache.module-definition' ;
5- import { defaultCacheOptions } from './default-options' ;
5+ import { defaultCacheOptions as defaultCacheOptionsOrigin } from './default-options' ;
66import {
77 CacheManagerOptions ,
88 CacheStore ,
@@ -17,6 +17,7 @@ export function createCacheManager(): Provider {
1717 return {
1818 provide : CACHE_MANAGER ,
1919 useFactory : async ( options : CacheManagerOptions ) => {
20+ const defaultCacheOptions = { ...defaultCacheOptionsOrigin } ;
2021 const cacheManager = loadPackage ( 'cache-manager' , 'CacheModule' , ( ) =>
2122 require ( 'cache-manager' ) ,
2223 ) ;
You can’t perform that action at this time.
0 commit comments