Return the key expire value, as absolute Unix timestamp. * If no TTL is associated with the key or if the key is empty, * REDISMODULE_NO_EXPIRE is returned. */
| 2391 | * If no TTL is associated with the key or if the key is empty, |
| 2392 | * REDISMODULE_NO_EXPIRE is returned. */ |
| 2393 | mstime_t RM_GetAbsExpire(RedisModuleKey *key) { |
| 2394 | mstime_t expire = getExpire(key->db,key->key); |
| 2395 | if (expire == -1 || key->value == NULL) |
| 2396 | return REDISMODULE_NO_EXPIRE; |
| 2397 | return expire; |
| 2398 | } |
| 2399 | |
| 2400 | /* Set a new expire for the key. If the special expire |
| 2401 | * REDISMODULE_NO_EXPIRE is set, the expire is cancelled if there was |
nothing calls this directly
no test coverage detected