Reference

boost::redis::request::push_range

Appends a new command to the end of the request.

Synopses

Declared in <boost/redis/request.hpp>

Appends a new command to the end of the request.

template<class ForwardIterator>
void
push_range(
    std::string_view cmd,
    std::string_view key,
    ForwardIterator begin,
    ForwardIterator end,
    std::iterator_traits<ForwardIterator>::value_type* = nullptr);

Appends a new command to the end of the request.

template<class ForwardIterator>
void
push_range(
    std::string_view cmd,
    ForwardIterator begin,
    ForwardIterator end,
    std::iterator_traits<ForwardIterator>::value_type* = nullptr);

Appends a new command to the end of the request.

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

Appends a new command to the end of the request.

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

Template Parameters

Name

Description

ForwardIterator

A forward iterator with an element type that is convertible to std::string_view or supports boost_redis_to_bulk.

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.

begin

Iterator to the begin of the range.

end

Iterator to the end of the range.

range

Range containing the command arguments.

Created with MrDocs