Boost.Redis 1.4.2
A redis client library
Loading...
Searching...
No Matches
response.hpp
1/* Copyright (c) 2018-2023 Marcelo Zimbres Silva (mzimbres@gmail.com)
2 *
3 * Distributed under the Boost Software License, Version 1.0. (See
4 * accompanying file LICENSE.txt)
5 */
6
7#ifndef BOOST_REDIS_RESPONSE_HPP
8#define BOOST_REDIS_RESPONSE_HPP
9
10#include <boost/redis/resp3/node.hpp>
11#include <boost/redis/adapter/result.hpp>
12#include <boost/system.hpp>
13
14#include <vector>
15#include <string>
16#include <tuple>
17
18namespace boost::redis
19{
20
24template <class... Ts>
25using response = std::tuple<adapter::result<Ts>...>;
26
36
73void consume_one(generic_response& r, system::error_code& ec);
74
76void consume_one(generic_response& r);
77
78} // boost::redis
79
80#endif // BOOST_REDIS_RESPONSE_HPP
system::result< Value, error > result
Stores response to individual Redis commands.
Definition: result.hpp:56
std::tuple< adapter::result< Ts >... > response
Response with compile-time size.
Definition: response.hpp:25
adapter::result< std::vector< resp3::node > > generic_response
A generic response to a request.
Definition: response.hpp:35