1
0
Fork 0
mirror of https://github.com/KingDuckZ/incredis synced 2025-08-07 12:59:46 +00:00

Add some convenience methods to check the type of a reply.

This commit is contained in:
King_DuckZ 2016-11-28 09:50:48 +00:00
parent 0d4561e2c7
commit 3b57d01b0f
2 changed files with 36 additions and 5 deletions

View file

@ -77,6 +77,13 @@ namespace redis {
Reply ( StatusString&& parVal ) : base_class(std::move(parVal)) {}
Reply ( std::nullptr_t parVal ) : base_class(parVal) {}
~Reply ( void ) noexcept = default;
bool is_integer ( void ) const;
bool is_string ( void ) const;
bool is_array ( void ) const;
bool is_error ( void ) const;
bool is_status ( void ) const;
bool is_nil ( void ) const;
};
const long long& get_integer ( const Reply& parReply );