if ($this->ttl
) { $this->
refresh();
} if ($this->key->
isExpired()) { try { $this->
release();
} catch (\Exception
) { // swallow exception to not hide the original issue
} throw new LockExpiredException(sprintf('Failed to store the "%s" lock.',
$this->key
));
} return true;
} catch (LockConflictedException
$e) { $this->dirty = false;
$this->logger?->
info('Failed to acquire the "{resource}" lock. Someone else already acquired the lock.',
['resource' =>
$this->key
]);
if ($blocking) { throw $e;
}