request.ipp 491 B

123456789101112131415161718192021
  1. /* Copyright (c) 2018-2023 Marcelo Zimbres Silva ([email protected])
  2. *
  3. * Distributed under the Boost Software License, Version 1.0. (See
  4. * accompanying file LICENSE.txt)
  5. */
  6. #include <boost/redis/request.hpp>
  7. #include <string_view>
  8. namespace boost::redis::detail {
  9. auto has_response(std::string_view cmd) -> bool
  10. {
  11. if (cmd == "SUBSCRIBE") return true;
  12. if (cmd == "PSUBSCRIBE") return true;
  13. if (cmd == "UNSUBSCRIBE") return true;
  14. return false;
  15. }
  16. } // boost:redis::detail