protected function getCacheConfig(string $name): array
    {
        $cache = $this->resolvedOptions['cached'];

        if (! \is_array($config = ($cache[$name] ?? false)) && ! $config) {
            throw new InvalidArgumentException(\sprintf('Cache [%s] not configured.', $name));
        }

        $config['name'] = $name;

        return $config;
    }
protected function getCacheConfig(string $name): array
    {
        $cache = $this->resolvedOptions['cached'];

        if (! \is_array($config = ($cache[$name] ?? false)) && ! $config) {
            throw new InvalidArgumentException(\sprintf('Cache [%s] not configured.', $name));
        }

        $config['name'] = $name;

        return $config;
    }
protected function getCacheConfig ( string $ name ) : array { $ cache = $ this -> resolvedOptions [ 'cached' ] ; if ( ! \ is_array ( $ config = ( $ cache [ $ name ] ?? false ) ) && ! $ config ) { throw new InvalidArgumentException ( \ sprintf ( 'Cache [%s] not configured.' , $ name ) ) ; } $ config [ 'name' ] = $ name ; return $ config ; }
Get the cache configuration.

@param string $name

@throws \Viserio\Component\Contract\Filesystem\Exception\InvalidArgumentException

@return array
Get the cache configuration .