public function command($method, array $parameters = [])
    {
        $start = microtime(true);

        $result = $this->client->{$method}(...$parameters);

        $time = round((microtime(true) - $start) * 1000, 2);

        if (isset($this->events)) {
            $this->event(new CommandExecuted($method, $parameters, $time, $this));
        }

        return $result;
    }
public function command($method, array $parameters = [])
    {
        $start = microtime(true);

        $result = $this->client->{$method}(...$parameters);

        $time = round((microtime(true) - $start) * 1000, 2);

        if (isset($this->events)) {
            $this->event(new CommandExecuted($method, $parameters, $time, $this));
        }

        return $result;
    }
public function command ( $ method , array $ parameters = [ ] ) { $ start = microtime ( true ) ; $ result = $ this -> client -> { $ method } ( ... $ parameters ) ; $ time = round ( ( microtime ( true ) - $ start ) * 1000 , 2 ) ; if ( isset ( $ this -> events ) ) { $ this -> event ( new CommandExecuted ( $ method , $ parameters , $ time , $ this ) ) ; } return $ result ; }
Run a command against the Redis database.

@param  string  $method
@param  array   $parameters
@return mixed
Run a command against the Redis database .