Change-Id: Ieb503cdb5d0849be7b7be21780ae552ab937ae80
unset( $currentValue ); // free RAM in case the value is large
$this->clearLastError();
unset( $currentValue ); // free RAM in case the value is large
$this->clearLastError();
- if ( $value === false ) {
+ if ( $value === false || $exptime < 0 ) {
$success = true; // do nothing
} elseif ( $hadNoCurrentValue ) {
// Try to create the key, failing if it gets created in the meantime
$success = true; // do nothing
} elseif ( $hadNoCurrentValue ) {
// Try to create the key, failing if it gets created in the meantime