Lines Matching refs:rep
137 redisReply* rep;
138 rep = redisCommand(ctx, "AUTH %s", password);
139 if(!rep || rep->type == REDIS_REPLY_ERROR) {
141 freeReplyObject(rep);
144 freeReplyObject(rep);
147 redisReply* rep;
148 rep = redisCommand(ctx, "SELECT %d", logical_db);
149 if(!rep || rep->type == REDIS_REPLY_ERROR) {
152 freeReplyObject(rep);
155 freeReplyObject(rep);
279 redisReply* rep = NULL;
282 rep = redis_command(env, cachedb_env,
284 if(!rep) {
288 redis_reply_type = rep->type;
289 freeReplyObject(rep);
339 redisReply* rep;
383 rep = (redisReply*)redisCommand(ctx, command, data, data_len);
384 if(!rep) {
396 if(rep->type == REDIS_REPLY_ERROR)
398 data ? "set" : "get", rep->str);
400 return rep;
407 redisReply* rep;
420 rep = redis_command(env, cachedb_env, cmdbuf, NULL, 0, 0);
421 if(!rep)
423 switch(rep->type) {
429 (int)rep->len);
430 if((size_t)rep->len > sldns_buffer_capacity(result_buffer)) {
432 (size_t)rep->len);
436 sldns_buffer_write(result_buffer, rep->str, rep->len);
444 rep->type);
447 freeReplyObject(rep);
455 redisReply* rep;
498 rep = redis_command(env, cachedb_env, cmdbuf, data, data_len, 1);
499 if(rep) {
501 if(rep->type != REDIS_REPLY_STATUS &&
502 rep->type != REDIS_REPLY_ERROR &&
503 rep->type != REDIS_REPLY_INTEGER) {
505 rep->type);
507 freeReplyObject(rep);