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

Method clear

src/StorageCache.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void StorageCache::clear(void(callback)(void*))
35{
36 std::unique_lock<fastlock> ul(m_lock);
37 if (m_pdict != nullptr)
38 dictEmpty(m_pdict, callback);
39 m_spstorage->clear();
40 m_collisionCount = 0;
41}
42
43void StorageCache::clearAsync()
44{

Callers 1

clearAsyncMethod · 0.45

Calls 1

dictEmptyFunction · 0.85

Tested by

no test coverage detected