| 31 | |
| 32 | |
| 33 | void MasterClientBase::PutAddrToCache(const std::string &key, const proto::Addr &addr) { |
| 34 | addr_cache_[key] = make_pair(addr, time(nullptr) + 3600 + utils::OtherUtils::FastRand() % 1800); |
| 35 | } |
| 36 | |
| 37 | bool MasterClientBase::GetAddrFromCache(const std::string &key, proto::Addr &addr) { |
| 38 | auto &&it(addr_cache_.find(key)); |
nothing calls this directly
no outgoing calls
no test coverage detected