MCPcopy Create free account
hub / github.com/chronoxor/CppServer / GetCacheValue

Method GetCacheValue

tests/test_https.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

onReceivedRequestMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected