private function validateMetadataCache(array $config)
    {
        if (false === $config['enabled']) {
            return $this;
        }

        $this->validateTypeAndService($config, 'as3_modlr.metadata.cache');
        switch ($config['type']) {
            case 'redis':
                $this->validateMetadataCacheRedis($config);
                break;
            default:
                break;
        }
        return $this;
    }
private function validateMetadataCache(array $config)
    {
        if (false === $config['enabled']) {
            return $this;
        }

        $this->validateTypeAndService($config, 'as3_modlr.metadata.cache');
        switch ($config['type']) {
            case 'redis':
                $this->validateMetadataCacheRedis($config);
                break;
            default:
                break;
        }
        return $this;
    }
private function validateMetadataCache ( array $ config ) { if ( false === $ config [ 'enabled' ] ) { return $ this ; } $ this -> validateTypeAndService ( $ config , 'as3_modlr.metadata.cache' ) ; switch ( $ config [ 'type' ] ) { case 'redis' : $ this -> validateMetadataCacheRedis ( $ config ) ; break ; default : break ; } return $ this ; }
Validates the metadata cache config.

@param   array   $config
@return  self
@throws  InvalidConfigurationException
Validates the metadata cache config .