예제 #1
0
파일: Share.php 프로젝트: kaka987/YoungYaf
 public function __construct()
 {
     parent::__construct();
     $config = Yaf_Registry::get('monitor_config');
     $server = explode(',', trim($config['share']['server']));
     $servers = null;
     foreach ($server as $serverStr) {
         $servers[] = explode(":", trim($serverStr));
     }
     $this->m = new Memcached();
     $this->m->addServers($servers);
 }
예제 #2
0
파일: Shm.php 프로젝트: kaka987/YoungYaf
 public function __construct()
 {
     parent::__construct();
     $this->shmDao = new Dao_ShareMemory($this->flag);
 }