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

Function updateExpire

src/db.cpp:78–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void updateExpire(redisDb *db, sds key, robj *valOld, robj *valNew)
79{
80 serverAssert(valOld->FExpires());
81 serverAssert(!valNew->FExpires());
82
83 serverAssert(db->FKeyExpires((const char*)key));
84
85 valNew->expire = std::move(valOld->expire);
86 valNew->SetFExpires(true);
87 valOld->SetFExpires(false);
88 return;
89}
90
91static void lookupKeyUpdateObj(robj *val, int flags)
92{

Callers 1

dbOverwriteCoreMethod · 0.85

Calls 3

FExpiresMethod · 0.80
FKeyExpiresMethod · 0.80
SetFExpiresMethod · 0.80

Tested by

no test coverage detected