Lines Matching refs:type
209 int type; member
249 tmp.type = CLI_HELP_GROUP; in cliInitHelp()
257 tmp.type = CLI_HELP_COMMAND; in cliInitHelp()
272 if(reply == NULL || reply->type != REDIS_REPLY_ARRAY) return; in cliIntegrateHelp()
296 new->type = CLI_HELP_COMMAND; in cliIntegrateHelp()
371 if (entry->type != CLI_HELP_COMMAND) continue; in cliOutputHelp()
410 if (!(helpEntries[i].type & mask)) continue; in completionCallback()
437 if (!(helpEntries[i].type & CLI_HELP_COMMAND)) continue; in hintsCallback()
499 if (reply->type == REDIS_REPLY_ERROR) result = REDIS_ERR; in cliSelect()
553 switch (r->type) { in cliFormatReplyTTY()
612 fprintf(stderr,"Unknown reply type: %d\n", r->type); in cliFormatReplyTTY()
667 switch (r->type) { in cliFormatReplyRaw()
677 if (r->type == REDIS_REPLY_STATUS && config.eval_ldb) { in cliFormatReplyRaw()
708 fprintf(stderr,"Unknown reply type: %d\n", r->type); in cliFormatReplyRaw()
718 switch (r->type) { in cliFormatReplyCSV()
744 fprintf(stderr,"Unknown reply type: %d\n", r->type); in cliFormatReplyCSV()
777 config.last_cmd_type = reply->type; in cliReadReply()
781 if (config.cluster_mode && reply->type == REDIS_REPLY_ERROR && in cliReadReply()
1822 if (reply->type == REDIS_REPLY_ERROR) { in pipeMode()
1825 } else if (eof && reply->type == REDIS_REPLY_STRING && in pipeMode()
1941 } else if(reply->type == REDIS_REPLY_ERROR) { in sendScan()
1944 } else if(reply->type != REDIS_REPLY_ARRAY) { in sendScan()
1953 assert(reply->element[0]->type == REDIS_REPLY_STRING); in sendScan()
1954 assert(reply->element[1]->type == REDIS_REPLY_ARRAY); in sendScan()
1968 if(reply == NULL || reply->type != REDIS_REPLY_INTEGER) { in getDbSize()
1980 static int toIntType(char *key, char *type) { in toIntType() argument
1981 if(!strcmp(type, "string")) { in toIntType()
1983 } else if(!strcmp(type, "list")) { in toIntType()
1985 } else if(!strcmp(type, "set")) { in toIntType()
1987 } else if(!strcmp(type, "hash")) { in toIntType()
1989 } else if(!strcmp(type, "zset")) { in toIntType()
1991 } else if(!strcmp(type, "none")) { in toIntType()
1994 fprintf(stderr, "Unknown type '%s' for key '%s'\n", type, key); in toIntType()
2014 } else if(reply->type != REDIS_REPLY_STATUS) { in getKeyTypes()
2016 reply->type, keys->element[i]->str); in getKeyTypes()
2055 } else if(reply->type != REDIS_REPLY_INTEGER) { in getKeySizes()
2078 int type, *types=NULL; in findBigKeys() local
2126 if((type = types[i]) == TYPE_NONE) in findBigKeys()
2129 totalsize[type] += sizes[i]; in findBigKeys()
2130 counts[type]++; in findBigKeys()
2134 if(biggest[type]<sizes[i]) { in findBigKeys()
2137 pct, typename[type], keys->element[i]->str, sizes[i], in findBigKeys()
2138 typeunit[type]); in findBigKeys()
2141 maxkeys[type] = sdscpy(maxkeys[type], keys->element[i]->str); in findBigKeys()
2142 if(!maxkeys[type]) { in findBigKeys()
2148 biggest[type] = sizes[i]; in findBigKeys()
2272 if (reply->type == REDIS_REPLY_ERROR) { in statMode()
2365 } else if (reply->type == REDIS_REPLY_ERROR) { in scanMode()
2440 switch(reply->type) { in LRUTestMode()