function LockInterface::refresh
Increase the duration of an acquired lock.
Parameters
float|null $ttl Maximum expected lock duration in seconds:
Throws
LockConflictedException If the lock is acquired by someone else
LockAcquiringException If the lock cannot be refreshed
2 methods override LockInterface::refresh()
- Lock::refresh in vendor/
symfony/ lock/ Lock.php - Increase the duration of an acquired lock.
- NoLock::refresh in vendor/
symfony/ lock/ NoLock.php - Increase the duration of an acquired lock.
File
-
vendor/
symfony/ lock/ LockInterface.php, line 42
Class
- LockInterface
- LockInterface defines an interface to manipulate the status of a lock.
Namespace
Symfony\Component\LockCode
public function refresh(?float $ttl = null) : void;