I'm caching an object in the global namespace so for example: global.cachedObject = myObject;
but I notice that after a certain amount of time, node garbage collects it. Is there a way to tag the object in some way so that it doesn't get collected?
I'm caching an object in the global namespace so for example: global.cachedObject = myObject;
but I notice that after a certain amount of time, node garbage collects it. Is there a way to tag the object in some way so that it doesn't get collected?