Exemple #1
0
 protected function getConfig($config = null)
 {
     //如果传入配置文件
     $host = isset($config['host']) ? $config['host'] : '';
     $port = isset($config['port']) ? $config['port'] : '';
     if ($host && $port) {
         $new_config['host'] = $host;
         $new_config['port'] = $port;
         self::$_config = $new_config;
     } else {
         self::$_config = (include MEMCACHE_PATH . 'config/config.php');
     }
 }