Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 463 Bytes
#include "hiredis/hiredis.h"
typedef struct _phpiredis_connection {
redisContext *c;
char* ip;
int port;
zend_bool is_persistent;
} phpiredis_connection;
typedef struct _phpiredis_reader {
void *reader;
void *bufferedReply;
char* error;
void* status_callback;
void* error_callback;
} phpiredis_reader;
#define PHPIREDIS_READER_STATE_COMPLETE 1
#define PHPIREDIS_READER_STATE_INCOMPLETE 2
#define PHPIREDIS_READER_STATE_ERROR 3
Something went wrong with that request. Please try again.