| 1399 | *----------------------------------------------------------------------------*/ |
| 1400 | |
| 1401 | int 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 |
no test coverage detected