public static function restore($name, $cacheConfig = 'default')
    {
        if (!class_exists(Cache::class)) {
            throw new RuntimeException('You must install cakephp/cache to use Configure::restore()');
        }
        $values = Cache::read($name, $cacheConfig);
        if ($values) {
            return static::write($values);
        }

        return false;
    }
public static function restore($name, $cacheConfig = 'default')
    {
        if (!class_exists(Cache::class)) {
            throw new RuntimeException('You must install cakephp/cache to use Configure::restore()');
        }
        $values = Cache::read($name, $cacheConfig);
        if ($values) {
            return static::write($values);
        }

        return false;
    }
public static function restore ( $ name , $ cacheConfig = 'default' ) { if ( ! class_exists ( Cache :: class ) ) { throw new RuntimeException ( 'You must install cakephp/cache to use Configure::restore()' ) ; } $ values = Cache :: read ( $ name , $ cacheConfig ) ; if ( $ values ) { return static :: write ( $ values ) ; } return false ; }
Restores configuration data stored in the Cache into configure. Restored
values will overwrite existing ones.

@param string $name Name of the stored config file to load.
@param string $cacheConfig Name of the Cache configuration to read from.
@return bool Success.
Restores configuration data stored in the Cache into configure . Restored values will overwrite existing ones .