Beispiel #1
0
 /**
  *
  */
 public function startUp()
 {
     foreach ($this->_options['multidb'] as $key => $item) {
         if (0 === strpos($key, 'ts')) {
             $this->_tsDbs[$key] = Zend_Db::factory($item['adapter'], $item['params']);
             continue;
         }
         Tudu_Dao_Manager::setDb($key, Zend_Db::factory($item['adapter'], $item['params']));
     }
     $this->_memcache = new Oray_Memcache(array('compression' => $this->_options['memcache']['compression'], 'compatibility' => $this->_options['memcache']['compatibility']));
     $this->_memcache->addServer($this->_options['memcache']['host'], $this->_options['memcache']['port']);
     $this->_httpsqs = new Oray_Httpsqs($this->_options['httpsqs']['host'], $this->_options['httpsqs']['port'], $this->_options['httpsqs']['charset'], $this->_options['httpsqs']['names']['tudu']);
 }