boost_redis 1.4.2
A redis client library
ignore.hpp
1/* Copyright (c) 2018-2022 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_ADAPTER_IGNORE_HPP
8#define BOOST_REDIS_ADAPTER_IGNORE_HPP
9
10#include <boost/redis/resp3/node.hpp>
11#include <boost/redis/error.hpp>
12#include <boost/system/error_code.hpp>
13#include <string>
14
15namespace boost::redis::adapter
16{
17
23struct ignore {
24 void operator()(resp3::basic_node<std::string_view> const& nd, system::error_code& ec)
25 {
26 switch (nd.data_type) {
30 default:;
31 }
32 }
33};
34
35} // boost::redis::adapter
36
37#endif // BOOST_REDIS_ADAPTER_IGNORE_HPP
@ resp3_blob_error
Got RESP3 blob_error.
@ resp3_null
Got RESP3 null.
@ resp3_simple_error
Got RESP3 simple error.
An adapter that ignores responses.
Definition: ignore.hpp:23
A node in the response tree.
Definition: node.hpp:28
type data_type
The RESP3 type of the data in this node.
Definition: node.hpp:30