protected function callRedisCommand(PredisProxy $redis, $name, $arguments)
    {
        $start = microtime(true);
        try {
            $return = call_user_func_array(array($redis, $name), $arguments);
            $this->notifyEvent($name, $arguments, microtime(true) - $start);
        } catch (Predis\PredisException $e) {
            throw new Exception("Error calling the method ".$name." : ".$e->getMessage());
        }

        return $return;
    }
protected function callRedisCommand(PredisProxy $redis, $name, $arguments)
    {
        $start = microtime(true);
        try {
            $return = call_user_func_array(array($redis, $name), $arguments);
            $this->notifyEvent($name, $arguments, microtime(true) - $start);
        } catch (Predis\PredisException $e) {
            throw new Exception("Error calling the method ".$name." : ".$e->getMessage());
        }

        return $return;
    }
protected function callRedisCommand ( PredisProxy $ redis , $ name , $ arguments ) { $ start = microtime ( true ) ; try { $ return = call_user_func_array ( array ( $ redis , $ name ) , $ arguments ) ; $ this -> notifyEvent ( $ name , $ arguments , microtime ( true ) - $ start ) ; } catch ( Predis \ PredisException $ e ) { throw new Exception ( "Error calling the method " . $ name . " : " . $ e -> getMessage ( ) ) ; } return $ return ; }
call a redis command

@param PredisProxy    $redis
@param string         $name
@param array          $arguments

@throws Exception
@return mixed
call a redis command