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

Function lookupKeyWriteOrReply

src/db.cpp:278–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278robj *lookupKeyWriteOrReply(client *c, robj *key, robj *reply) {
279 robj *o = lookupKeyWrite(c->db, key);
280 if (!o) SentReplyOnKeyMiss(c, reply);
281 return o;
282}
283
284bool dbAddCore(redisDb *db, sds key, robj *val, bool fUpdateMvcc, bool fAssumeNew = false, dict_iter *piterExisting = nullptr, bool fValExpires = false) {
285 serverAssert(fValExpires || !val->FExpires());

Callers 15

renameGenericCommandFunction · 0.85
hdelCommandFunction · 0.85
hrenameCommandFunction · 0.85
zremCommandFunction · 0.85
zremrangeGenericCommandFunction · 0.85
xsetidCommandFunction · 0.85
xdelCommandFunction · 0.85
xtrimCommandFunction · 0.85
expireMemberCoreFunction · 0.85
sremCommandFunction · 0.85
spopWithCountCommandFunction · 0.85
spopCommandFunction · 0.85

Calls 2

lookupKeyWriteFunction · 0.85
SentReplyOnKeyMissFunction · 0.85

Tested by

no test coverage detected