Boost.Redis: include/boost/redis/response.hpp Source File

Boost.Redis 1.84.0 A redis client library

Loading...
Searching...
No Matches
response.hpp
1/* Copyright (c) 2018-2024 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>
25 using response = std::tuple<adapter::result<Ts>...>;
26
35 using generic_response = adapter::result<std::vector<resp3::node>>;
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
boost::redis::adapter::result
system::result< Value, error > result
Stores response to individual Redis commands.
Definition: result.hpp:56
boost::redis::response
std::tuple< adapter::result< Ts >... > response
Response with compile-time size.
Definition: response.hpp:25
boost::redis::generic_response
adapter::result< std::vector< resp3::node > > generic_response
A generic response to a request.
Definition: response.hpp:35