MCPcopy Create free account
hub / github.com/Snapchat/Valdi / removeCacheKey

Method removeCacheKey

valdi/src/valdi/runtime/Attributes/PreprocessorCache.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void PreprocessorCache::removeCacheKey(const PreprocessorCacheKey& key) {
59 std::lock_guard<Mutex> guard(_mutex);
60 const auto& it = _cache.find(key);
61 if (it != _cache.end()) {
62 _cache.erase(key);
63 }
64}
65
66void PreprocessorCache::clear() {
67 std::lock_guard<Mutex> guard(_mutex);

Callers 1

Calls 3

endMethod · 0.65
findMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected