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

Method erase

src/storage/teststorageprovider.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38 bool TestStorageProvider::erase(const char *key, size_t cchKey)
39 {
40 auto itr = m_map.find(std::string(key, cchKey));
41 if (itr != m_map.end())
42 {
43 m_map.erase(itr);
44 return true;
45 }
46 return false;
47 }
48
49void TestStorageProvider::retrieve(const char *key, size_t cchKey, callbackSingle fn) const
50{

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected