src/RedisConnection.php
public function createConnection()
    {
        $redis            = $this->initRedis();
        $this->connection = $redis;

        /** @var RedisPoolConfig $config */
        $config = $this->getPool()->getPoolConfig();
        $redis->select($config->getDb());
    }
public function createConnection()
    {
        $redis            = $this->initRedis();
        $this->connection = $redis;

        /** @var RedisPoolConfig $config */
        $config = $this->getPool()->getPoolConfig();
        $redis->select($config->getDb());
    }
Create connection

@throws RedisException