Lines Matching refs:argv
348 expireIfNeeded(c->db,c->argv[j]); in delCommand()
349 if (dbDelete(c->db,c->argv[j])) { in delCommand()
350 signalModifiedKey(c->db,c->argv[j]); in delCommand()
352 "del",c->argv[j],c->db->id); in delCommand()
367 expireIfNeeded(c->db,c->argv[j]); in existsCommand()
368 if (dbExists(c->db,c->argv[j])) count++; in existsCommand()
376 if (getLongFromObjectOrReply(c, c->argv[1], &id, in selectCommand()
406 sds pattern = c->argv[1]->ptr; in keysCommand()
511 if (!strcasecmp(c->argv[i]->ptr, "count") && j >= 2) { in scanGenericCommand()
512 if (getLongFromObjectOrReply(c, c->argv[i+1], &count, NULL) in scanGenericCommand()
524 } else if (!strcasecmp(c->argv[i]->ptr, "match") && j >= 2) { in scanGenericCommand()
525 pat = c->argv[i+1]->ptr; in scanGenericCommand()
671 if (parseScanCursorOrReply(c,c->argv[1],&cursor) == C_ERR) return; in scanCommand()
687 o = lookupKeyReadWithFlags(c->db,c->argv[1],LOOKUP_NOTOUCH); in typeCommand()
710 if (!strcasecmp(c->argv[1]->ptr,"nosave")) { in shutdownCommand()
712 } else if (!strcasecmp(c->argv[1]->ptr,"save")) { in shutdownCommand()
738 if (sdscmp(c->argv[1]->ptr,c->argv[2]->ptr) == 0) samekey = 1; in renameGenericCommand()
740 if ((o = lookupKeyWriteOrReply(c,c->argv[1],shared.nokeyerr)) == NULL) in renameGenericCommand()
749 expire = getExpire(c->db,c->argv[1]); in renameGenericCommand()
750 if (lookupKeyWrite(c->db,c->argv[2]) != NULL) { in renameGenericCommand()
758 dbDelete(c->db,c->argv[2]); in renameGenericCommand()
760 dbAdd(c->db,c->argv[2],o); in renameGenericCommand()
761 if (expire != -1) setExpire(c->db,c->argv[2],expire); in renameGenericCommand()
762 dbDelete(c->db,c->argv[1]); in renameGenericCommand()
763 signalModifiedKey(c->db,c->argv[1]); in renameGenericCommand()
764 signalModifiedKey(c->db,c->argv[2]); in renameGenericCommand()
766 c->argv[1],c->db->id); in renameGenericCommand()
768 c->argv[2],c->db->id); in renameGenericCommand()
796 if (getLongLongFromObject(c->argv[2],&dbid) == C_ERR || in moveCommand()
814 o = lookupKeyWrite(c->db,c->argv[1]); in moveCommand()
819 expire = getExpire(c->db,c->argv[1]); in moveCommand()
822 if (lookupKeyWrite(dst,c->argv[1]) != NULL) { in moveCommand()
826 dbAdd(dst,c->argv[1],o); in moveCommand()
827 if (expire != -1) setExpire(dst,c->argv[1],expire); in moveCommand()
831 dbDelete(src,c->argv[1]); in moveCommand()
881 robj *argv[2]; in propagateExpire() local
883 argv[0] = shared.del; in propagateExpire()
884 argv[1] = key; in propagateExpire()
885 incrRefCount(argv[0]); in propagateExpire()
886 incrRefCount(argv[1]); in propagateExpire()
889 feedAppendOnlyFile(server.delCommand,db->id,argv,2); in propagateExpire()
890 replicationFeedSlaves(server.slaves,db->id,argv,2); in propagateExpire()
892 decrRefCount(argv[0]); in propagateExpire()
893 decrRefCount(argv[1]); in propagateExpire()
944 robj *key = c->argv[1], *param = c->argv[2]; in expireGenericCommand()
1009 if (lookupKeyReadWithFlags(c->db,c->argv[1],LOOKUP_NOTOUCH) == NULL) { in ttlGenericCommand()
1015 expire = getExpire(c->db,c->argv[1]); in ttlGenericCommand()
1038 de = dictFind(c->db->dict,c->argv[1]->ptr); in persistCommand()
1042 if (removeExpire(c->db,c->argv[1])) { in persistCommand()
1055 if (lookupKeyRead(c->db,c->argv[j]) != NULL) touched++; in touchCommand()
1065 int *getKeysUsingCommandTable(struct redisCommand *cmd,robj **argv, int argc, int *numkeys) { in getKeysUsingCommandTable() argument
1067 UNUSED(argv); in getKeysUsingCommandTable()
1095 int *getKeysFromCommand(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in getKeysFromCommand() argument
1097 return cmd->getkeys_proc(cmd,argv,argc,numkeys); in getKeysFromCommand()
1099 return getKeysUsingCommandTable(cmd,argv,argc,numkeys); in getKeysFromCommand()
1111 int *zunionInterGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in zunionInterGetKeys() argument
1115 num = atoi(argv[2]->ptr); in zunionInterGetKeys()
1140 int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in evalGetKeys() argument
1144 num = atoi(argv[2]->ptr); in evalGetKeys()
1168 int *sortGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in sortGetKeys() argument
1193 if (!strcasecmp(argv[i]->ptr,skiplist[j].name)) { in sortGetKeys()
1196 } else if (!strcasecmp(argv[i]->ptr,"store") && i+1 < argc) { in sortGetKeys()
1210 int *migrateGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in migrateGetKeys() argument
1221 if (!strcasecmp(argv[i]->ptr,"keys") && in migrateGetKeys()
1222 sdslen(argv[3]->ptr) == 0) in migrateGetKeys()