Lines Matching refs:argv

276     set = lookupKeyWrite(c->db,c->argv[1]);  in saddCommand()
278 set = setTypeCreate(c->argv[2]); in saddCommand()
279 dbAdd(c->db,c->argv[1],set); in saddCommand()
288 c->argv[j] = tryObjectEncoding(c->argv[j]); in saddCommand()
289 if (setTypeAdd(set,c->argv[j])) added++; in saddCommand()
292 signalModifiedKey(c->db,c->argv[1]); in saddCommand()
293 notifyKeyspaceEvent(NOTIFY_SET,"sadd",c->argv[1],c->db->id); in saddCommand()
303 if ((set = lookupKeyWriteOrReply(c,c->argv[1],shared.czero)) == NULL || in sremCommand()
307 if (setTypeRemove(set,c->argv[j])) { in sremCommand()
310 dbDelete(c->db,c->argv[1]); in sremCommand()
317 signalModifiedKey(c->db,c->argv[1]); in sremCommand()
318 notifyKeyspaceEvent(NOTIFY_SET,"srem",c->argv[1],c->db->id); in sremCommand()
320 notifyKeyspaceEvent(NOTIFY_GENERIC,"del",c->argv[1], in sremCommand()
329 srcset = lookupKeyWrite(c->db,c->argv[1]); in smoveCommand()
330 dstset = lookupKeyWrite(c->db,c->argv[2]); in smoveCommand()
331 ele = c->argv[3] = tryObjectEncoding(c->argv[3]); in smoveCommand()
355 notifyKeyspaceEvent(NOTIFY_SET,"srem",c->argv[1],c->db->id); in smoveCommand()
359 dbDelete(c->db,c->argv[1]); in smoveCommand()
360 notifyKeyspaceEvent(NOTIFY_GENERIC,"del",c->argv[1],c->db->id); in smoveCommand()
366 dbAdd(c->db,c->argv[2],dstset); in smoveCommand()
369 signalModifiedKey(c->db,c->argv[1]); in smoveCommand()
370 signalModifiedKey(c->db,c->argv[2]); in smoveCommand()
376 notifyKeyspaceEvent(NOTIFY_SET,"sadd",c->argv[2],c->db->id); in smoveCommand()
384 if ((set = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL || in sismemberCommand()
387 c->argv[2] = tryObjectEncoding(c->argv[2]); in sismemberCommand()
388 if (setTypeIsMember(set,c->argv[2])) in sismemberCommand()
397 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL || in scardCommand()
417 if (getLongFromObjectOrReply(c,c->argv[2],&l,NULL) != C_OK) return; in spopWithCountCommand()
427 if ((set = lookupKeyReadOrReply(c,c->argv[1],shared.emptymultibulk)) in spopWithCountCommand()
440 notifyKeyspaceEvent(NOTIFY_SET,"spop",c->argv[1],c->db->id); in spopWithCountCommand()
448 sunionDiffGenericCommand(c,c->argv+1,1,NULL,SET_OP_UNION); in spopWithCountCommand()
451 dbDelete(c->db,c->argv[1]); in spopWithCountCommand()
452 notifyKeyspaceEvent(NOTIFY_GENERIC,"del",c->argv[1],c->db->id); in spopWithCountCommand()
455 rewriteClientCommandVector(c,2,shared.del,c->argv[1]); in spopWithCountCommand()
456 signalModifiedKey(c->db,c->argv[1]); in spopWithCountCommand()
466 propargv[1] = c->argv[1]; in spopWithCountCommand()
528 dbOverwrite(c->db,c->argv[1],newset); in spopWithCountCommand()
558 signalModifiedKey(c->db,c->argv[1]); in spopWithCountCommand()
577 if ((set = lookupKeyWriteOrReply(c,c->argv[1],shared.nullbulk)) == NULL || in spopCommand()
592 notifyKeyspaceEvent(NOTIFY_SET,"spop",c->argv[1],c->db->id); in spopCommand()
596 rewriteClientCommandVector(c,3,aux,c->argv[1],ele); in spopCommand()
605 dbDelete(c->db,c->argv[1]); in spopCommand()
606 notifyKeyspaceEvent(NOTIFY_GENERIC,"del",c->argv[1],c->db->id); in spopCommand()
610 signalModifiedKey(c->db,c->argv[1]); in spopCommand()
632 if (getLongFromObjectOrReply(c,c->argv[2],&l,NULL) != C_OK) return; in srandmemberWithCountCommand()
642 if ((set = lookupKeyReadOrReply(c,c->argv[1],shared.emptymultibulk)) in srandmemberWithCountCommand()
673 sunionDiffGenericCommand(c,c->argv+1,1,NULL,SET_OP_UNION); in srandmemberWithCountCommand()
768 if ((set = lookupKeyReadOrReply(c,c->argv[1],shared.nullbulk)) == NULL || in srandmemberCommand()
928 sinterGenericCommand(c,c->argv+1,c->argc-1,NULL); in sinterCommand()
932 sinterGenericCommand(c,c->argv+2,c->argc-2,c->argv[1]); in sinterstoreCommand()
1099 sunionDiffGenericCommand(c,c->argv+1,c->argc-1,NULL,SET_OP_UNION); in sunionCommand()
1103 sunionDiffGenericCommand(c,c->argv+2,c->argc-2,c->argv[1],SET_OP_UNION); in sunionstoreCommand()
1107 sunionDiffGenericCommand(c,c->argv+1,c->argc-1,NULL,SET_OP_DIFF); in sdiffCommand()
1111 sunionDiffGenericCommand(c,c->argv+2,c->argc-2,c->argv[1],SET_OP_DIFF); in sdiffstoreCommand()
1118 if (parseScanCursorOrReply(c,c->argv[2],&cursor) == C_ERR) return; in sscanCommand()
1119 if ((set = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || in sscanCommand()