| 38 | } |
| 39 | |
| 40 | bool GetCacheValue(std::string_view key, std::string& value) |
| 41 | { |
| 42 | std::scoped_lock locker(_cache_lock); |
| 43 | auto it = _cache.find(key); |
| 44 | if (it != _cache.end()) |
| 45 | { |
| 46 | value = it->second; |
| 47 | return true; |
| 48 | } |
| 49 | else |
| 50 | return false; |
| 51 | } |
| 52 | |
| 53 | void PutCacheValue(std::string_view key, std::string_view value) |
| 54 | { |