MCPcopy Create free account
hub / github.com/cc20110101/RedisView / doKeyListWork

Method doKeyListWork

src/RedisView/Public/WorkThread.cpp:539–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void WorkThread::doKeyListWork()
540{
541 if(!prepare()) {
542 emit runError(_taskMsg->_taskid,_string);
543 emit finishWork(_taskMsg->_taskid);
544 return;
545 }
546
547 _sendMsg = *_taskMsg;
548 _sendMsg._list.clear();
549 _sendMsg._respResult.init();
550 do {
551 if(_redisClient->scan(_sendMsg._keyPattern, _sendMsg._respResult, _cursor, BATCH_SCAN_NUM)) {
552 _cursor = _sendMsg._respResult._arrayValue[0]._stringValue.toLongLong();
553 emit sendData(_sendMsg);
554 } else {
555 _cursor = 0;
556 }
557 _sendMsg._respResult.init();
558 } while(_cursor);
559
560 destroy();
561}
562
563void WorkThread::doValueListWork() {
564

Callers

nothing calls this directly

Calls 3

scanMethod · 0.80
clearMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected