lib/db.js
function mongoConnectionStringOS3(cb) {

  debug('Running in OpenShift 3, requesting db connection string from MBaaS');
  mbaasClient.app.databaseConnectionString({
    "domain": config.fhmbaas.domain,
    "environment": config.fhmbaas.environment
  }, function retrieved(err, resp) {
    if (err) {
      return cb(err);
    }
    process.env.FH_MONGODB_CONN_URL = resp.url;
    return cb(undefined, resp.url);
  });
}
function mongoConnectionStringOS3(cb) {

  debug('Running in OpenShift 3, requesting db connection string from MBaaS');
  mbaasClient.app.databaseConnectionString({
    "domain": config.fhmbaas.domain,
    "environment": config.fhmbaas.environment
  }, function retrieved(err, resp) {
    if (err) {
      return cb(err);
    }
    process.env.FH_MONGODB_CONN_URL = resp.url;
    return cb(undefined, resp.url);
  });
}
function mongoConnectionStringOS3 ( cb ) { debug ( 'Running in OpenShift 3, requesting db connection string from MBaaS' ) ; mbaasClient . app . databaseConnectionString ( { "domain" : config . fhmbaas . domain , "environment" : config . fhmbaas . environment } , function retrieved ( err , resp ) { if ( err ) { return cb ( err ) ; } process . env . FH_MONGODB_CONN_URL = resp . url ; return cb ( undefined , resp . url ) ; } ) ; }
use mbaas client set process.env.FH_MONGODB_CONN_URL to cache it
use mbaas client set process . env . FH_MONGODB_CONN_URL to cache it