mirror of
https://github.com/boostorg/redis.git
synced 2026-01-29 19:52:18 +00:00
20 lines
475 B
C++
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
|