Avoid expiration life time when $specificLifetime has not passed in function, the casting "(int)" to "null" value is equals to "0":
Summary:
//If the function returns a null, the casting transforms null to 0
$lifetime = (int)$this->_getAutoExpiringLifetime($this->getLifetime($specificLifetime), $id);
//If $lifetime is 0 the requirement is met and the key expires...
if ($lifetime !== false && !is_null($lifetime)) {
$this->_redis->expire(self::PREFIX_KEY.$id, min($lifetime, self::MAX_LIFETIME));
}
Avoid expiration life time when $specificLifetime has not passed in function, the casting "(int)" to "null" value is equals to "0":
Summary: