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 |
Range |
A type that can be passed to |
Parameters
Name |
Description |
cmd |
The command to execute. It should be a redis or sentinel command, like |
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