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

Method erase

valdi/src/valdi/standalone_runtime/InMemoryKeychain.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool InMemoryKeychain::erase(const StringBox& key) {
31 std::lock_guard<Mutex> lock(_mutex);
32 const auto& it = _blobs.find(key);
33 if (it == _blobs.end()) {
34 return false;
35 }
36 _updateSequence++;
37 _blobs.erase(it);
38 return true;
39}
40
41uint64_t InMemoryKeychain::getUpdateSequence() const {
42 std::lock_guard<Mutex> lock(_mutex);

Callers 8

removeForAbsolutePathMethod · 0.45
removeFromParentMethod · 0.45
setAttributeMethod · 0.45
consumeLastMethod · 0.45
getClassHierarchyMethod · 0.45
invalidateCachedItemsMethod · 0.45

Calls 2

endMethod · 0.65
findMethod · 0.45

Tested by

no test coverage detected