7 #include <redis3m/utils/exception.h>
43 inline const std::string&
str()
const {
return _str; }
48 inline long long integer()
const {
return _integer; }
53 inline const std::vector<reply>&
elements()
const {
return _elements; }
61 std::vector<reply> _elements;
const std::string & str() const
Returns string value if present, otherwise an empty string.
Definition: reply.h:43
type_t
Define reply type.
Definition: reply.h:24
long long integer() const
Returns integer value if present, otherwise 0.
Definition: reply.h:48
The connection class, represent a connection to a Redis server.
Definition: connection.h:27
type_t type() const
Type of reply, other field values are dependent of this.
Definition: reply.h:38
const std::vector< reply > & elements() const
Returns a vector of sub-replies if present, otherwise an empty one.
Definition: reply.h:53
Represent a reply received from redis server.
Definition: reply.h:18