2
0
mirror of https://github.com/boostorg/redis.git synced 2026-01-29 19:52:18 +00:00
Files
redis/include/aedis/resp3/impl/request.ipp
2022-08-31 20:56:28 +02:00

20 lines
475 B
C++

/* Copyright (c) 2018-2022 Marcelo Zimbres Silva (mzimbres@gmail.com)
*
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE.txt)
*/
#include <aedis/resp3/request.hpp>
namespace aedis::resp3::detail {
auto has_push_response(boost::string_view cmd) -> bool
{
if (cmd == "SUBSCRIBE") return true;
if (cmd == "PSUBSCRIBE") return true;
if (cmd == "UNSUBSCRIBE") return true;
return false;
}
} // aedis::resp3::detail