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

Method addToStatCache

lib/internal/fs/glob.js:207–209  ·  view source on GitHub ↗
(path, val)

Source from the content-addressed store, hash-verified

205 return val;
206 }
207 addToStatCache(path, val) {
208 this.#statsCache.set(path, val);
209 }
210 async readdir(path) {
211 const cached = this.#readdirCache.get(path);
212 if (cached) {

Callers 2

#addSubpatternsMethod · 0.80
#iterateSubpatternsMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected