Lines Matching refs:cache
86 exports.realpathSync = function realpathSync(p, cache) { argument
90 if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
91 return cache[p];
137 if (knownHard[base] || (cache && cache[base] === base)) {
142 if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
144 resolvedLink = cache[base];
149 if (cache) cache[base] = base;
168 if (cache) cache[base] = resolvedLink;
177 if (cache) cache[original] = p;
183 exports.realpath = function realpath(p, cache, cb) { argument
185 cb = maybeCallback(cache);
186 cache = null;
192 if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
193 return process.nextTick(cb.bind(null, null, cache[p]));
236 if (cache) cache[original] = p;
249 if (knownHard[base] || (cache && cache[base] === base)) {
253 if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
255 return gotResolvedLink(cache[base]);
267 if (cache) cache[base] = base;
294 if (cache) cache[base] = resolvedLink;