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

Method retrieve

src/storage/teststorageprovider.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49void TestStorageProvider::retrieve(const char *key, size_t cchKey, callbackSingle fn) const
50{
51 auto itr = m_map.find(std::string(key, cchKey));
52 if (itr != m_map.end())
53 fn(key, cchKey, itr->second.data(), itr->second.size());
54}
55
56size_t TestStorageProvider::clear()
57{

Callers

nothing calls this directly

Calls 4

dataMethod · 0.80
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected