stylelint-bundle-worker.js
function ( docId, cacheDir ) {
    var me = this;

    me._visited = { };
    me._persisted = { };
    me._pathToFile = cacheDir ? path.resolve( cacheDir, docId ) : path.resolve( __dirname, './.cache/', docId );

    if ( fs.existsSync( me._pathToFile ) ) {
      me._persisted = utils.tryParse( me._pathToFile, { } );
    }
  }
function ( docId, cacheDir ) {
    var me = this;

    me._visited = { };
    me._persisted = { };
    me._pathToFile = cacheDir ? path.resolve( cacheDir, docId ) : path.resolve( __dirname, './.cache/', docId );

    if ( fs.existsSync( me._pathToFile ) ) {
      me._persisted = utils.tryParse( me._pathToFile, { } );
    }
  }
Load a cache identified by the given Id. If the element does not exists, then initialize an empty
cache storage. If specified `cacheDir` will be used as the directory to persist the data to. If omitted
then the cache module directory `./cache` will be used instead

@method load
@param docId {String} the id of the cache, would also be used as the name of the file cache
@param [cacheDir] {String} directory for the cache entry