MCPcopy Create free account
hub / github.com/cinience/RedisStudio / Info

Method Info

RedisStudio/Redis/RedisClient.cpp:63–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool 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
86bool RedisClient::keys(const std::string& matchstr, TSeqArrayResults& results)
87{

Callers

nothing calls this directly

Calls 1

freeReplyObjectFunction · 0.85

Tested by

no test coverage detected