lib/index.js
function readFileCache (path, noCache, cb) {
    path = abs(path);

    if (typeof noCache === "function") {
        cb = noCache;
        noCache = false;
    }

    // TODO: Callback buffering
    if (_cache[path] && noCache !== true) {
        return cb(null, _cache[path]);
    }

    read(path, (err, data) => {
        if (err) { return cb(err); }
        cb(null, _cache[path] = data);
    });
}
function readFileCache (path, noCache, cb) {
    path = abs(path);

    if (typeof noCache === "function") {
        cb = noCache;
        noCache = false;
    }

    // TODO: Callback buffering
    if (_cache[path] && noCache !== true) {
        return cb(null, _cache[path]);
    }

    read(path, (err, data) => {
        if (err) { return cb(err); }
        cb(null, _cache[path] = data);
    });
}
function readFileCache ( path , noCache , cb ) { path = abs ( path ) ; if ( typeof noCache === "function" ) { cb = noCache ; noCache = false ; } // TODO: Callback buffering if ( _cache [ path ] && noCache !== true ) { return cb ( null , _cache [ path ] ) ; } read ( path , ( err , data ) => { if ( err ) { return cb ( err ) ; } cb ( null , _cache [ path ] = data ) ; } ) ; }
readFileCache
Reads the file asyncronously.

@name readFileCache
@function
@param {String} path The file path.
@param {Boolean} noCache If `true`, the file will be read from the disk.
@param {Function} cb The callback function.
readFileCache Reads the file asyncronously .