Acquires a lock.
Parameters
string $name:
Lock name.
float $timeout = 30.0:
(optional) Lock lifetime in seconds.
Return value
bool
File
- drupal/core/lib/Drupal/Core/Lock/LockBackendInterface.php, line 25
- Definition of Drupal\Core\Lock\LockBackendInterface.
Class
- LockBackendInterface
- Lock backend interface.
Namespace
Drupal\Core\Lock
Code
public function acquire($name, $timeout = 30.0);