Lines Matching defs:rep
109 redisReply* rep;
110 rep = redisCommand(ctx, "AUTH %s", moddata->server_password);
111 if(!rep || rep->type == REDIS_REPLY_ERROR) {
113 freeReplyObject(rep);
116 freeReplyObject(rep);
119 redisReply* rep;
120 rep = redisCommand(ctx, "SELECT %d", moddata->logical_db);
121 if(!rep || rep->type == REDIS_REPLY_ERROR) {
124 freeReplyObject(rep);
127 freeReplyObject(rep);
192 redisReply* rep = NULL;
195 rep = redis_command(env, cachedb_env,
197 if(!rep) {
204 redis_reply_type = rep->type;
205 freeReplyObject(rep);
252 redisReply* rep;
275 rep = (redisReply*)redisCommand(ctx, command, data, data_len);
276 if(!rep) {
288 if(rep->type == REDIS_REPLY_ERROR)
290 data ? "set" : "get", rep->str);
292 return rep;
299 redisReply* rep;
312 rep = redis_command(env, cachedb_env, cmdbuf, NULL, 0);
313 if(!rep)
315 switch(rep->type) {
321 (int)rep->len);
322 if((size_t)rep->len > sldns_buffer_capacity(result_buffer)) {
324 (size_t)rep->len);
328 sldns_buffer_write(result_buffer, rep->str, rep->len);
336 rep->type);
339 freeReplyObject(rep);
347 redisReply* rep;
377 rep = redis_command(env, cachedb_env, cmdbuf, data, data_len);
378 if(rep) {
380 if(rep->type != REDIS_REPLY_STATUS &&
381 rep->type != REDIS_REPLY_ERROR) {
383 rep->type);
385 freeReplyObject(rep);