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

Method StorageCache

src/StorageCache.cpp:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21StorageCache::StorageCache(IStorage *storage, bool fCache)
22 : m_spstorage(storage)
23{
24 if (!g_pserver->flash_disable_key_cache && fCache)
25 m_pdict = dictCreate(&dbStorageCacheType, nullptr);
26}
27
28StorageCache::~StorageCache()
29{

Callers

nothing calls this directly

Calls 1

dictCreateFunction · 0.70

Tested by

no test coverage detected