获取缓存
@param $key
@param $config
@return mixed
189439
public static function get($key,$config)
    {
        static::initRedis();
        /**
         * 确定key
         */
        static::$key = $key;
        if(is_array($key) && count($key) == 2){
            static::$group = $key[0];
            static::$key = $key[1];
        }
        static::$md5key =  md5(static::$key );
        $returnData = unserialize(static::$Redis->get('cache_'.static::$typeCache.'_'.static::$group.'_'.static::$md5key));
        static::staticEmpty();
        return $returnData;

    }
1135487
public static function get($name, $config = NULL)
    {
        if(isset($_COOKIE[$name]))
        {
            // Decrypt cookie using cookie key
            if($v = json_decode(Cipher::decrypt(base64_decode($_COOKIE[$name]), Config::config()->key), true))
            {
                return $v;
            }
        }

        return FALSE;
    }
1233067
public function get(string $key)
    {
        $key = strtolower($key);

        if (empty($this->configuration[$key])) {
            $this->loadConfigFile($key);
        }

        return $this->configuration[$key];
    }
154572
public function get($key, $default = null) {
		$key = $this->getKey($key);
		$result = getConf($key);
		return $result === null ? $default : $result;
	}
1056781
public function getConfig($configKey)
    {
        if (array_key_exists($configKey, $this->config)) {
            return $this->config[$configKey];
        }
        return false;
    }
735289
public static function config($key='*', $section=null) {

        if ( isset(self::$CONFIGS[$section][$key]) ) {
            return self::$CONFIGS[$section][$key];
        }
        if( $section == null ) {
            $configDir = APP_PATH.'configs/';   //加载应用configs根目录中的配置文件
        } else {
            $configDir = APP_PATH.'configs/'.str_replace('.', '/', $section).'/';   //加载应用configs文件夹中的配置文档
        }

        if ( $key != '*' ) {
            $configFile = $configDir.$key.EXT_CONFIG;
            if ( file_exists($configFile) ) {
                self::$CONFIGS[$section][$key] = include $configFile;
            }
        } else if ( file_exists($configDir) ) {
            chdir($configDir);
            $configFiles = glob("*.config.php");
            $configs = array();
            foreach ( $configFiles as $file ) {
                $tempConfig = include $configDir.$file;
                $configs = array_merge($configs, $tempConfig);
            }
            self::$CONFIGS[$section][$key] = &$configs;
        }

        if ( self::$CONFIGS[$section][$key] ) {
            return self::$CONFIGS[$section][$key];
        } else {
            return array();
        }
    }
862874
final protected function getConfigValue(string $key)
    {
        $retval = false;

        if (isset($this->config[$key], $this->config[$key][ConfigurationInterface::KEY_VALUE])) {
            $retval = $this->config[$key][ConfigurationInterface::KEY_VALUE];
        } elseif (isset($this->config[$key])) {
            $retval = $this->config[$key];
        }

        return $retval;
    }
1041946
public function config($config)
    {
        if (is_array($config)) {
            $this->config = array_merge($this->config, $config);
        } elseif (isset($this->config[$config])) {
            return $this->config[$config];
        } else {
            return;
        }
    }
53786
public function getConfig(string $configKey): APIConfig
    {
        if ($this->hasConfig($configKey)) {
            return $this->configs[$configKey];
        }

        throw ConfigException::noConfig($configKey);
    }
272821
public function getCfgValue($key, $default = null)
    {
        $value = $default;

        $cfg = $this->config->getCfg();

        if ($cfg) {
            $value = $cfg->get($key, $default);
        }

        return $value;
    }
887275
public function check($config)
    {
        if ($this->key && !empty($config['allow_key']) && !in_array($this->key, $config['allow_key'])) {
            return false;
        }

        return true;
    }
1209784
public static function configGet($key)
    {
		$data = self::getDbConnection()->fetchAssoc('SELECT value FROM config WHERE `class` = ? and `key` = ?', array( get_called_class(), $key ));
		if (!$data) return null;
		return unserialize($data['value']);
    }
372878
public static function get($key, $default = NULL) {
        if (isset(self::$configs[$key]))
            return self::$configs[$key];

        return $default;

    }
380311
public static function get(string $key = null)
    {
        self::set();

        if (empty($key)) {
            return self::$config;
        }

        $keys  = explode('.', $key);
        $value = self::$config;

        foreach ($keys as $key) {
            if ( ! isset($value[$key])) {
                return null;
            }

            $value = $value[$key];
        }

        return $value;
    }
270882
protected function getCommandConfig(Config $config, $command)
    {
        $string = '';
        if (isset($config[$command])) {
            /** @var Config $config */
            $config = $config[$command];
            if ($config->count() > 0) {
                $config = $config->toArray();
                /** @var array $config */
                $string .= $this->commands[$command] . PHP_EOL . '{' . PHP_EOL . "\t";
                $string .= $this->getValuesString($config, true);
                $string .= PHP_EOL . '}' . PHP_EOL;
            }
        }
        return $string;
    }
604645
public static function getConfig($key)
    {
        return isset(self::$connectionConfig[$key]) ? self::$connectionConfig[$key] : null;
    }
239708
public function getConfig(string $key, ?Configuration $default = null): Configuration
    {
        $resolved = false;
        $value = $this->getByKey($key, $this->data, $resolved);
        
        if ($resolved) {
            return new static($value);
        }
        
        return $default ?? new static();
    }