Home
last modified time | relevance | path

Searched refs:numkeys (Results 1 – 11 of 11) sorted by relevance

/redis-3.2.3/tests/unit/
H A Dmaxmemory.tcl40 set numkeys 0
43 incr numkeys
45 assert {$numkeys > 10}
72 set numkeys 0
75 incr numkeys
77 assert {$numkeys > 10}
114 set numkeys 0
118 if {$numkeys % 2} {
121 r set "key:$numkeys" x
124 assert {$numkeys > 10}
[all …]
/redis-3.2.3/tests/cluster/tests/
H A D04-resharding.tcl54 set numkeys 50000
87 set listid [randomInt $numkeys]
115 test "Verify $numkeys keys for consistency with logical content" {
133 test "Verify $numkeys keys after the crash & restart" {
H A D10-manual-failover.tcl31 set numkeys 50000
40 set listid [randomInt $numkeys]
82 test "Verify $numkeys keys for consistency with logical content" {
/redis-3.2.3/src/
H A Ddb.c408 unsigned long numkeys = 0; in keysCommand() local
421 numkeys++; in keysCommand()
427 setDeferredMultiBulkLength(c,replylen,numkeys); in keysCommand()
1070 *numkeys = 0; in getKeysUsingCommandTable()
1080 *numkeys = i; in getKeysUsingCommandTable()
1097 return cmd->getkeys_proc(cmd,argv,argc,numkeys); in getKeysFromCommand()
1119 *numkeys = 0; in zunionInterGetKeys()
1148 *numkeys = 0; in evalGetKeys()
1153 *numkeys = num; in evalGetKeys()
1206 *numkeys = num + found_store; in sortGetKeys()
[all …]
H A Dbitops.c587 unsigned long op, j, numkeys; in bitopCommand() local
616 numkeys = c->argc - 3; in bitopCommand()
617 src = zmalloc(sizeof(unsigned char*) * numkeys); in bitopCommand()
618 len = zmalloc(sizeof(long) * numkeys); in bitopCommand()
619 objects = zmalloc(sizeof(robj*) * numkeys); in bitopCommand()
620 for (j = 0; j < numkeys; j++) { in bitopCommand()
670 for (i = 1; i < numkeys; i++) { in bitopCommand()
683 for (i = 1; i < numkeys; i++) { in bitopCommand()
696 for (i = 1; i < numkeys; i++) { in bitopCommand()
724 for (i = 1; i < numkeys; i++) { in bitopCommand()
[all …]
H A Dserver.h988 typedef int *redisGetKeysProc(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
1432 int *getKeysFromCommand(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
1434 int *zunionInterGetKeys(struct redisCommand *cmd,robj **argv, int argc, int *numkeys);
1435 int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
1436 int *sortGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
1437 int *migrateGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
H A Dscripting.c1209 long long numkeys; in evalGenericCommand() local
1231 if (getLongLongFromObjectOrReply(c,c->argv[2],&numkeys,NULL) != C_OK) in evalGenericCommand()
1233 if (numkeys > (c->argc - 3)) { in evalGenericCommand()
1236 } else if (numkeys < 0) { in evalGenericCommand()
1290 luaSetGlobalArray(lua,"KEYS",c->argv+3,numkeys); in evalGenericCommand()
1291 luaSetGlobalArray(lua,"ARGV",c->argv+3+numkeys,c->argc-3-numkeys); in evalGenericCommand()
H A Dredis-trib.rb521 numkeys = n.r.cluster("countkeysinslot",slot)
522 if numkeys > best_numkeys || best == nil
524 best_numkeys = numkeys
H A Dt_list.c616 void blockForKeys(client *c, robj **keys, int numkeys, mstime_t timeout, robj *target) { in blockForKeys() argument
626 for (j = 0; j < numkeys; j++) { in blockForKeys()
H A Dcluster.c4159 unsigned int numkeys, j; in clusterCommand() local
4173 numkeys = getKeysInSlot(slot, keys, maxkeys); in clusterCommand()
4174 addReplyMultiBulkLen(c,numkeys); in clusterCommand()
4175 for (j = 0; j < numkeys; j++) addReplyBulk(c,keys[j]); in clusterCommand()
5009 int margc, *keyindex, numkeys, j; in getNodeByQuery() local
5015 keyindex = getKeysFromCommand(mcmd,margv,margc,&numkeys); in getNodeByQuery()
5016 for (j = 0; j < numkeys; j++) { in getNodeByQuery()
H A Dserver.c2778 int *keys, numkeys, j; in commandCommand() local
2790 keys = getKeysFromCommand(cmd,c->argv+2,c->argc-2,&numkeys); in commandCommand()
2791 addReplyMultiBulkLen(c,numkeys); in commandCommand()
2792 for (j = 0; j < numkeys; j++) addReplyBulk(c,c->argv[keys[j]+2]); in commandCommand()