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

Method parseResp

src/RedisView/RedisLib/RedisCluster.cpp:701–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701bool RedisCluster::parseResp(const QByteArray &data, RespType &rResult) {
702 if(_isClusterMode) {
703 if(_vClusterMasterClients.size() > 0) {
704 if(_vClusterMasterClients[0]._client)
705 return _vClusterMasterClients[0]._client->parseResp(data, rResult);
706 }
707 } else {
708 if(_redisClient)
709 return _redisClient->parseResp(data, rResult);
710 }
711 return false;
712}
713
714void RedisCluster::formatToJson(const RespType &inResp, QJsonArray &outJson) {
715 if(_isClusterMode) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected