MCPcopy Index your code
hub / github.com/nodejs/node / setReadFileCache

Function setReadFileCache

test/fixtures/snapshot/typescript.js:115900–115904  ·  view source on GitHub ↗
(key, fileName)

Source from the content-addressed store, hash-verified

115898 return setReadFileCache(key, fileName);
115899 };
115900 var setReadFileCache = function (key, fileName) {
115901 var newValue = originalReadFile.call(host, fileName);
115902 readFileCache.set(key, newValue !== undefined ? newValue : false);
115903 return newValue;
115904 };
115905 host.readFile = function (fileName) {
115906 var key = toPath(fileName);
115907 var value = readFileCache.get(key);

Callers 2

readFileWithCacheFunction · 0.85

Calls 2

callMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…