| 61 | } |
| 62 | |
| 63 | bool RedisClient::Info(std::string& results) |
| 64 | { |
| 65 | bool retVal = false; |
| 66 | |
| 67 | if (!IsConnected()) return retVal; |
| 68 | redisReply* reply = Command("info"); |
| 69 | if (!reply) return retVal; |
| 70 | |
| 71 | if (reply->type == REDIS_REPLY_STRING) |
| 72 | { |
| 73 | retVal = true; |
| 74 | results = reply->str; |
| 75 | } |
| 76 | else if (reply->type == REDIS_REPLY_STATUS) |
| 77 | { |
| 78 | /// ssdb 返回正常状态 |
| 79 | retVal = true; |
| 80 | } |
| 81 | freeReplyObject(reply); |
| 82 | |
| 83 | return retVal; |
| 84 | } |
| 85 | |
| 86 | bool RedisClient::keys(const std::string& matchstr, TSeqArrayResults& results) |
| 87 | { |
nothing calls this directly
no test coverage detected