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:
parent
0d4561e2c7
commit
3b57d01b0f
2 changed files with 36 additions and 5 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue