Example #1
0
 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);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->shmDao = new Dao_ShareMemory($this->flag);
 }