throw new LockStorageException($error, 0, null
);
} // On Windows, even if PHP doc says the contrary, LOCK_NB works, see
// https://bugs.php.net/54129
if (!
flock($handle,
($read ? \LOCK_SH : \LOCK_EX
) |
($blocking ? 0 : \LOCK_NB
))) { fclose($handle);
throw new LockConflictedException();
} $key->
setState(__CLASS__,
[$read,
$handle]);
$key->
markUnserializable();
} /**
* @return void
*/
public function putOffExpiration(Key
$key, float
$ttl) { // do nothing, the flock locks forever.
} /**
* @return void
*/