src/Factory/PredisFactory.php
public function getAdapter(array $config)
    {
        $dsn = $this->getDsn();
        if (empty($dsn)) {
            $client = new Client(
                [
                    'scheme' => $config['scheme'],
                    'host' => $config['host'],
                    'port' => $config['port'],
                    'persistent' => $config['persistent'],
                ]
            );
        } else {
            $client = new Client($dsn->getDsn());
        }

        $pool = new PredisCachePool($client);

        if (null !== $config['pool_namespace']) {
            $pool = new NamespacedCachePool($pool, $config['pool_namespace']);
        }

        return $pool;
    }
public function getAdapter(array $config)
    {
        $dsn = $this->getDsn();
        if (empty($dsn)) {
            $client = new Client(
                [
                    'scheme' => $config['scheme'],
                    'host' => $config['host'],
                    'port' => $config['port'],
                    'persistent' => $config['persistent'],
                ]
            );
        } else {
            $client = new Client($dsn->getDsn());
        }

        $pool = new PredisCachePool($client);

        if (null !== $config['pool_namespace']) {
            $pool = new NamespacedCachePool($pool, $config['pool_namespace']);
        }

        return $pool;
    }
{@inheritdoc}