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

Method PutCacheValue

tests/test_https.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 void PutCacheValue(std::string_view key, std::string_view value)
54 {
55 std::scoped_lock locker(_cache_lock);
56 auto it = _cache.emplace(key, value);
57 if (!it.second)
58 it.first->second = value;
59 }
60
61 bool DeleteCacheValue(std::string_view key, std::string& value)
62 {

Callers 1

onReceivedRequestMethod · 0.45

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected