----------------------------------------------------------------------------- * Expires API *----------------------------------------------------------------------------*/
| 1808 | * Expires API |
| 1809 | *----------------------------------------------------------------------------*/ |
| 1810 | int removeExpire(redisDb *db, robj *key) { |
| 1811 | auto itr = db->find(key); |
| 1812 | return db->removeExpire(key, itr); |
| 1813 | } |
| 1814 | int 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. */ |
no test coverage detected