cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
cwist_redis_reply Struct Reference

#include <cwist_redis.h>

Collaboration diagram for cwist_redis_reply:

Public Attributes

int type
 
char * str
 
size_t len
 
long long integer
 
struct cwist_redis_reply ** element
 
size_t elements
 

Detailed Description

Parsed RESP2 reply tree.

Supported since v3.8. Returned by cwist_redis_command_argv_reply(). type is the RESP type byte: '+', '-', ':', '$', '*'. For '-', str holds the error text and the command reports failure. For ':' and '$', str is the textual value (always NUL-terminated; use len for exact bulk length) and integer holds the parsed number. For '*', element/elements hold children.

Definition at line 80 of file cwist_redis.h.

Member Data Documentation

◆ element

struct cwist_redis_reply** cwist_redis_reply::element

Definition at line 85 of file cwist_redis.h.

◆ elements

size_t cwist_redis_reply::elements

Definition at line 86 of file cwist_redis.h.

◆ integer

long long cwist_redis_reply::integer

Definition at line 84 of file cwist_redis.h.

◆ len

size_t cwist_redis_reply::len

Definition at line 83 of file cwist_redis.h.

◆ str

char* cwist_redis_reply::str

Definition at line 82 of file cwist_redis.h.

◆ type

int cwist_redis_reply::type

Definition at line 81 of file cwist_redis.h.


The documentation for this struct was generated from the following file: