# Reference

## boost::redis::request::push_range

Appends a new command to the end of the request.

### Synopsis

Declared in `<boost/redis/request.hpp>`

    template<class Range>
    void
    push_range(
        std::string_view cmd,
        std::string_view key,
        Range const& range,
        decltype(std::begin(range))* = nullptr);

### Description

Equivalent to the overload taking a range of begin and end iterators.

### Template Parameters

Name | Description
Range | A type that can be passed to `std::begin()` and `std::end()` to obtain iterators. The range elements should be convertible to `std::string_view` or support `boost_redis_to_bulk`.

### Parameters

Name | Description
cmd | The command to execute. It should be a redis or sentinel command, like `"SET"`.
key | The command key. It will be added as the first argument to the command.
range | Range containing the command arguments.

Created with MrDocs