public static function get($key = null, $default = null) { // 无参数时获取所有 if (empty($key)) { return self::$_content; } $key = strtolower($key); return Cml::doteToArr($key, self::$_content['normal'], $default); }
/** * 使用的缓存配置 默认为使用default_cache配置的参数 * * @param bool|array $conf * * @throws PhpExtendNotInstall */ public function __construct($conf = false) { if (!function_exists('apc_cache_info')) { throw new PhpExtendNotInstall(Lang::get('_CACHE_EXTENT_NOT_INSTALL_', 'Apc')); } $this->conf = $conf ? $conf : Config::get('default_cache'); }