Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:08:24

0001 /* Copyright (c) 2018-2024 Marcelo Zimbres Silva (mzimbres@gmail.com)
0002  *
0003  * Distributed under the Boost Software License, Version 1.0. (See
0004  * accompanying file LICENSE.txt)
0005  */
0006 
0007 #include <boost/redis/request.hpp>
0008 
0009 #include <string_view>
0010 
0011 namespace boost::redis::detail {
0012 
0013 auto has_response(std::string_view cmd) -> bool
0014 {
0015    if (cmd == "SUBSCRIBE") return true;
0016    if (cmd == "PSUBSCRIBE") return true;
0017    if (cmd == "UNSUBSCRIBE") return true;
0018    return false;
0019 }
0020 
0021 } // boost:redis::detail