| 107 | } |
| 108 | |
| 109 | bool IsQueryNeeded(const wchar_t* str) |
| 110 | { |
| 111 | if (!m_good)return true; |
| 112 | std::lock_guard lg(m_lock); |
| 113 | CheckNewVerison(); |
| 114 | if (m_cache.find(str) != m_cache.end()) |
| 115 | return false; |
| 116 | return true; |
| 117 | } |
| 118 | |
| 119 | void AddToCache(const wchar_t* str) |
| 120 | { |