Node.js - Debugging and Profiling
In this code snippet, what causes the memory leak?
const cache = new Map();
function cacheData(key, value) {
cache.set(key, value);
}
// cache never cleared
