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

Function removeExpire

src/db.cpp:1810–1813  ·  view source on GitHub ↗

----------------------------------------------------------------------------- * Expires API *----------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

1808 * Expires API
1809 *----------------------------------------------------------------------------*/
1810int removeExpire(redisDb *db, robj *key) {
1811 auto itr = db->find(key);
1812 return db->removeExpire(key, itr);
1813}
1814int redisDbPersistentData::removeExpire(robj *key, dict_iter itr) {
1815 /* An expire may only be removed if there is a corresponding entry in the
1816 * main dict. Otherwise, the key will never be freed. */

Callers 9

dbOverwriteCoreMethod · 0.85
syncDeleteMethod · 0.85
setExpireFunction · 0.85
asyncDeleteMethod · 0.85
activeExpireCycleExpireFunction · 0.85
persistCommandFunction · 0.85
RM_SetExpireFunction · 0.85
RM_SetAbsExpireFunction · 0.85
getexCommandFunction · 0.85

Calls 2

findMethod · 0.45
removeExpireMethod · 0.45

Tested by

no test coverage detected