Represent a reply received from redis server.
More...
#include <reply.h>
|
enum | type_t {
STRING = 1,
ARRAY = 2,
INTEGER = 3,
NIL = 4,
STATUS = 5,
ERROR = 6
} |
| Define reply type.
|
|
|
type_t | type () const |
| Type of reply, other field values are dependent of this. More...
|
|
const std::string & | str () const |
| Returns string value if present, otherwise an empty string. More...
|
|
long long | integer () const |
| Returns integer value if present, otherwise 0. More...
|
|
const std::vector< reply > & | elements () const |
| Returns a vector of sub-replies if present, otherwise an empty one. More...
|
|
Represent a reply received from redis server.
const std::vector<reply>& redis3m::reply::elements |
( |
| ) |
const |
|
inline |
Returns a vector of sub-replies if present, otherwise an empty one.
- Returns
long long redis3m::reply::integer |
( |
| ) |
const |
|
inline |
Returns integer value if present, otherwise 0.
- Returns
const std::string& redis3m::reply::str |
( |
| ) |
const |
|
inline |
Returns string value if present, otherwise an empty string.
- Returns
type_t redis3m::reply::type |
( |
| ) |
const |
|
inline |
Type of reply, other field values are dependent of this.
- Returns
The documentation for this class was generated from the following files:
- include/redis3m/reply.h
- src/reply.cpp