index.js
function onInit(unused, callback) {
    var filePath = path.resolve(options.file);

    stats.deserialise.fs.start = Date.now();
    if (fs.existsSync(filePath)) {
      fs.readFile(filePath, complete);
    } else {
      complete(true);
    }

    function complete(error, contents) {
      stats.deserialise.fs.stop = Date.now();

      stats.deserialise.decode.start = Date.now();
      pending = !error && contents && cycle.retrocycle(decode(JSON.parse(contents)));
      stats.deserialise.decode.stop = Date.now();

      stats.deserialise.success = !error;
      callback();
    }
  }
function onInit(unused, callback) {
    var filePath = path.resolve(options.file);

    stats.deserialise.fs.start = Date.now();
    if (fs.existsSync(filePath)) {
      fs.readFile(filePath, complete);
    } else {
      complete(true);
    }

    function complete(error, contents) {
      stats.deserialise.fs.stop = Date.now();

      stats.deserialise.decode.start = Date.now();
      pending = !error && contents && cycle.retrocycle(decode(JSON.parse(contents)));
      stats.deserialise.decode.stop = Date.now();

      stats.deserialise.success = !error;
      callback();
    }
  }
function onInit ( unused , callback ) { var filePath = path . resolve ( options . file ) ; stats . deserialise . fs . start = Date . now ( ) ; if ( fs . existsSync ( filePath ) ) { fs . readFile ( filePath , complete ) ; } else { complete ( true ) ; } function complete ( error , contents ) { stats . deserialise . fs . stop = Date . now ( ) ; stats . deserialise . decode . start = Date . now ( ) ; pending = ! error && contents && cycle . retrocycle ( decode ( JSON . parse ( contents ) ) ) ; stats . deserialise . decode . stop = Date . now ( ) ; stats . deserialise . success = ! error ; callback ( ) ; } }
Deserialise any existing file into pending cache elements.
Deserialise any existing file into pending cache elements .