MCPcopy Create free account
hub / github.com/F-Stack/f-stack / removeExpire

Function removeExpire

app/redis-6.2.6/src/db.c:1401–1406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1399 *----------------------------------------------------------------------------*/
1400
1401int removeExpire(redisDb *db, robj *key) {
1402 /* An expire may only be removed if there is a corresponding entry in the
1403 * main dict. Otherwise, the key will never be freed. */
1404 serverAssertWithInfo(NULL,key,dictFind(db->dict,key->ptr) != NULL);
1405 return dictDelete(db->expires,key->ptr) == DICT_OK;
1406}
1407
1408/* Set an expire to the specified key. If the expire is set in the context
1409 * of an user calling a command 'c' is the client, otherwise 'c' is set

Callers 5

persistCommandFunction · 0.85
getexCommandFunction · 0.85
genericSetKeyFunction · 0.85
RM_SetExpireFunction · 0.85
RM_SetAbsExpireFunction · 0.85

Calls 2

dictFindFunction · 0.70
dictDeleteFunction · 0.70

Tested by

no test coverage detected