lib/adapter.js
function(config) {
    this._config = this._defaultConfig();
    if (!config) return true;
    
    var datastore;
    
    switch(config.adapter) {
    case 'disk':
      datastore = this._adapters.disk.connection();
      break;
      
    case 'redis':
      datastore = this._adapters.redis.connection(config.redis);
      break;
      
    case 'memory':
    default:
      return true; // Memory adapter by default
    }
    
    // Set connection
    this._config.connections.datastore = datastore;
    return true;
  }
function(config) {
    this._config = this._defaultConfig();
    if (!config) return true;
    
    var datastore;
    
    switch(config.adapter) {
    case 'disk':
      datastore = this._adapters.disk.connection();
      break;
      
    case 'redis':
      datastore = this._adapters.redis.connection(config.redis);
      break;
      
    case 'memory':
    default:
      return true; // Memory adapter by default
    }
    
    // Set connection
    this._config.connections.datastore = datastore;
    return true;
  }
function ( config ) { this . _config = this . _defaultConfig ( ) ; if ( ! config ) return true ; var datastore ; switch ( config . adapter ) { case 'disk' : datastore = this . _adapters . disk . connection ( ) ; break ; case 'redis' : datastore = this . _adapters . redis . connection ( config . redis ) ; break ; case 'memory' : default : return true ; // Memory adapter by default } // Set connection this . _config . connections . datastore = datastore ; return true ; }
Configure adapter connection

@param {object} config - Adapter configuration
Configure adapter connection