public function setDriversOrder(array $driversOrder)
    {
        foreach ($driversOrder as $driver) {
            if (!in_array($driver, $this->supportedDrivers)) {
                throw new RedisProxyException('Driver "' . $driver . '" is not supported');
            }
        }
        $this->driversOrder = $driversOrder;
        return $this;
    }
public function setDriversOrder(array $driversOrder)
    {
        foreach ($driversOrder as $driver) {
            if (!in_array($driver, $this->supportedDrivers)) {
                throw new RedisProxyException('Driver "' . $driver . '" is not supported');
            }
        }
        $this->driversOrder = $driversOrder;
        return $this;
    }
public function setDriversOrder ( array $ driversOrder ) { foreach ( $ driversOrder as $ driver ) { if ( ! in_array ( $ driver , $ this -> supportedDrivers ) ) { throw new RedisProxyException ( 'Driver "' . $ driver . '" is not supported' ) ; } } $ this -> driversOrder = $ driversOrder ; return $ this ; }
Set driver priorities - default is 1. redis, 2. predis
@param array $driversOrder
@return RedisProxy
@throws RedisProxyException if some driver is not supported
Set driver priorities - default is 1 . redis 2 . predis