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

Method storeKey

src/db.cpp:2899–2904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2897}
2898
2899void redisDbPersistentData::storeKey(sds key, robj *o, bool fOverwrite)
2900{
2901 sds temp = serializeStoredObjectAndExpire(o);
2902 m_spstorage->insert(key, temp, sdslen(temp), fOverwrite);
2903 sdsfree(temp);
2904}
2905
2906void redisDbPersistentData::storeDatabase()
2907{

Callers

nothing calls this directly

Calls 4

sdslenFunction · 0.85
sdsfreeFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected