| 958 | } |
| 959 | |
| 960 | inline bool Get(THttpConnRef& conn, size_t addrId) { |
| 961 | #ifdef DEBUG_STAT |
| 962 | TDebugStat::ConnTotal.store(TotalConn.Val(), std::memory_order_release); |
| 963 | TDebugStat::ConnActive.store(Active(), std::memory_order_release); |
| 964 | TDebugStat::ConnCached.store(Cache_.Size(), std::memory_order_release); |
| 965 | #endif |
| 966 | return Cache_.Get(conn, addrId); |
| 967 | } |
| 968 | |
| 969 | inline void Put(THttpConnRef& conn, size_t addrId) { |
| 970 | if (Y_LIKELY(!Shutdown_ && !ExceedHardLimit() && !CacheDisabled())) { |
no test coverage detected