cacheCollection.js
function init(){
    self.caches = [];
    if(isEmpty(cacheModules)){
      log(false, 'No cacheModules array provided--using the default configuration.');
      getDefaultConfiguration();
    }
    else{
      log(false, 'cacheModules array provided--using a custom configuration.');
      getCustomConfiguration();
      if(self.caches.length < 1){
        throw new Exception('NoCacheException', 'No caches were succesfully initialized.');
      }
    }
  }
function init(){
    self.caches = [];
    if(isEmpty(cacheModules)){
      log(false, 'No cacheModules array provided--using the default configuration.');
      getDefaultConfiguration();
    }
    else{
      log(false, 'cacheModules array provided--using a custom configuration.');
      getCustomConfiguration();
      if(self.caches.length < 1){
        throw new Exception('NoCacheException', 'No caches were succesfully initialized.');
      }
    }
  }
function init ( ) { self . caches = [ ] ; if ( isEmpty ( cacheModules ) ) { log ( false , 'No cacheModules array provided--using the default configuration.' ) ; getDefaultConfiguration ( ) ; } else { log ( false , 'cacheModules array provided--using a custom configuration.' ) ; getCustomConfiguration ( ) ; if ( self . caches . length < 1 ) { throw new Exception ( 'NoCacheException' , 'No caches were succesfully initialized.' ) ; } } }
Initialize cacheCollection given the provided constructor params
Initialize cacheCollection given the provided constructor params