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

Method TTL

RedisStudio/SSDB/SSDBClient.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132long long SSDBClient::TTL(const std::string& key)
133{
134 Base::Mutex::ScopedLock scopedLock(m_oMutex);
135 long long ttl = 0;
136 const std::vector<std::string>* rsp = m_Client->request("ttl", RealKey(key));
137 ssdb::Status status(rsp);
138 if (status.ok() && rsp->size() >= 2)
139 {
140 ttl = str_to_int64(rsp->at(1));
141 }
142 return ttl;
143}
144
145void SSDBClient::Quit()
146{

Callers 1

Calls 4

str_to_int64Function · 0.85
okMethod · 0.80
requestMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected