public function getSlaveConnection()
    {
        if (null === $this->slaveConnection) {
            $this->slaveConnection = new \Redis();
            $this->slaveConnection->pconnect(
                $this->config['slave']['HOST'],
                $this->config['slave']['PORT']
            );
        }
        return $this->slaveConnection;
    }
public function getSlaveConnection()
    {
        if (null === $this->slaveConnection) {
            $this->slaveConnection = new \Redis();
            $this->slaveConnection->pconnect(
                $this->config['slave']['HOST'],
                $this->config['slave']['PORT']
            );
        }
        return $this->slaveConnection;
    }
public function getSlaveConnection ( ) { if ( null === $ this -> slaveConnection ) { $ this -> slaveConnection = new \ Redis ( ) ; $ this -> slaveConnection -> pconnect ( $ this -> config [ 'slave' ] [ 'HOST' ] , $ this -> config [ 'slave' ] [ 'PORT' ] ) ; } return $ this -> slaveConnection ; }
Get slave connection
If connection is not initialized, we create a new one

@return \Redis
Get slave connection If connection is not initialized we create a new one