Class: CacheWatcher
Defined in: watchers/cache.watcher.ts:38
Implements
OnModuleInitOnModuleDestroy
Constructors
Constructor
new CacheWatcher(
collector,nestlensConfig,cacheManager?):CacheWatcher
Defined in: watchers/cache.watcher.ts:49
Parameters
collector
nestlensConfig
cacheManager?
CacheLike
Returns
CacheWatcher
Methods
onModuleDestroy()
onModuleDestroy():
void
Defined in: watchers/cache.watcher.ts:87
Puts the cache manager back the way it was found.
The wrappers live on an object the application owns and keeps, so closing
the module has to give it back. Otherwise the host goes on calling through
a watcher whose collector is gone — and where a process builds the module
more than once against the same object, as tests and nest start --hmr do,
each round wraps the last: one call, one entry per layer.
Returns
void
Implementation of
OnModuleDestroy.onModuleDestroy
onModuleInit()
onModuleInit():
void
Defined in: watchers/cache.watcher.ts:61
Returns
void
Implementation of
OnModuleInit.onModuleInit