Lines Matching refs:count
413 unsigned long count, size; in spopWithCountCommand() local
419 count = (unsigned) l; in spopWithCountCommand()
432 if (count == 0) { in spopWithCountCommand()
441 server.dirty += count; in spopWithCountCommand()
446 if (count >= size) { in spopWithCountCommand()
467 addReplyMultiBulkLen(c,count); in spopWithCountCommand()
473 unsigned long remaining = size-count; /* Elements left after SPOP. */ in spopWithCountCommand()
482 if (remaining*SPOP_MOVE_STRATEGY_MUL > count) { in spopWithCountCommand()
483 while(count--) { in spopWithCountCommand()
624 unsigned long count, size; in srandmemberWithCountCommand() local
634 count = (unsigned) l; in srandmemberWithCountCommand()
638 count = -l; in srandmemberWithCountCommand()
647 if (count == 0) { in srandmemberWithCountCommand()
657 addReplyMultiBulkLen(c,count); in srandmemberWithCountCommand()
658 while(count--) { in srandmemberWithCountCommand()
672 if (count >= size) { in srandmemberWithCountCommand()
689 if (count*SRANDMEMBER_SUB_STRATEGY_MUL > size) { in srandmemberWithCountCommand()
708 while(size > count) { in srandmemberWithCountCommand()
724 while(added < count) { in srandmemberWithCountCommand()
746 addReplyMultiBulkLen(c,count); in srandmemberWithCountCommand()