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

Method ensure

src/db.cpp:2805–2811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2803}
2804
2805void redisDbPersistentData::ensure(const char *key)
2806{
2807 if (m_pdbSnapshot == nullptr && m_spstorage == nullptr)
2808 return;
2809 dictEntry *de = dictFind(m_pdict, key);
2810 ensure(key, &de);
2811}
2812
2813void redisDbPersistentData::ensure(const char *sdsKey, dictEntry **pde)
2814{

Callers

nothing calls this directly

Calls 15

sdsdupsharedFunction · 0.85
serializeStoredObjectFunction · 0.85
deserializeStoredObjectFunction · 0.85
sdslenFunction · 0.85
sdsfreeFunction · 0.85
mvccFromObjFunction · 0.85
dictGetHashFunction · 0.85
dictFindWithPrevFunction · 0.85
deserializeExpireFunction · 0.85
getrefcountMethod · 0.80
FExpiresMethod · 0.80

Tested by

no test coverage detected