| 130 | } |
| 131 | |
| 132 | long 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 | |
| 145 | void SSDBClient::Quit() |
| 146 | { |
no test coverage detected