protected function getCacheConfig(string $name)
    {
        $cache = $this->config->get($this->getConfigName().'.cache');

        if (!is_array($config = array_get($cache, $name)) && !$config) {
            throw new InvalidArgumentException("Cache [$name] not configured.");
        }

        $config['name'] = $name;

        return $config;
    }
protected function getCacheConfig(string $name)
    {
        $cache = $this->config->get($this->getConfigName().'.cache');

        if (!is_array($config = array_get($cache, $name)) && !$config) {
            throw new InvalidArgumentException("Cache [$name] not configured.");
        }

        $config['name'] = $name;

        return $config;
    }
protected function getCacheConfig ( string $ name ) { $ cache = $ this -> config -> get ( $ this -> getConfigName ( ) . '.cache' ) ; if ( ! is_array ( $ config = array_get ( $ cache , $ name ) ) && ! $ config ) { throw new InvalidArgumentException ( "Cache [$name] not configured." ) ; } $ config [ 'name' ] = $ name ; return $ config ; }
Get the cache configuration.

@param string $name

@throws \InvalidArgumentException

@return array
Get the cache configuration .