lib/shared.js
function getUserCachePath(options) {
  // If we've manually set the static cache location
  if (options && options.cacheLocation) {
    return path.resolve(options.cacheLocation);
  }

  // Otherwise, find/use the python-ey appdirs cache location
  const dirs = new Appdir({
    appName: 'serverless-python-requirements',
    appAuthor: 'UnitedIncome'
  });
  return dirs.userCache();
}
function getUserCachePath(options) {
  // If we've manually set the static cache location
  if (options && options.cacheLocation) {
    return path.resolve(options.cacheLocation);
  }

  // Otherwise, find/use the python-ey appdirs cache location
  const dirs = new Appdir({
    appName: 'serverless-python-requirements',
    appAuthor: 'UnitedIncome'
  });
  return dirs.userCache();
}
function getUserCachePath ( options ) { // If we've manually set the static cache location if ( options && options . cacheLocation ) { return path . resolve ( options . cacheLocation ) ; } // Otherwise, find/use the python-ey appdirs cache location const dirs = new Appdir ( { appName : 'serverless-python-requirements' , appAuthor : 'UnitedIncome' } ) ; return dirs . userCache ( ) ; }
The static cache path that will be used for this system + options, used if static cache is enabled
@param  {Object} options
@return {string}
The static cache path that will be used for this system + options used if static cache is enabled