| 699 | } |
| 700 | |
| 701 | bool 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 | |
| 714 | void RedisCluster::formatToJson(const RespType &inResp, QJsonArray &outJson) { |
| 715 | if(_isClusterMode) { |
nothing calls this directly
no outgoing calls
no test coverage detected