public function LockBackendInterface::acquire in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Lock/LockBackendInterface.php \Drupal\Core\Lock\LockBackendInterface::acquire()
Acquires a lock.
Parameters
string $name: Lock name. Limit of name's length is 255 characters.
float $timeout = 30.0: (optional) Lock lifetime in seconds.
Return value
bool
5 methods override LockBackendInterface::acquire()
- DatabaseLockBackend::acquire in core/
lib/ Drupal/ Core/ ProxyClass/ Lock/ DatabaseLockBackend.php - Acquires a lock.
- DatabaseLockBackend::acquire in core/
lib/ Drupal/ Core/ Lock/ DatabaseLockBackend.php - Acquires a lock.
- MemcacheLockBackend::acquire in modules/
memcache/ src/ MemcacheLockBackend.php - Acquires a lock.
- NullLockBackend::acquire in core/
lib/ Drupal/ Core/ Lock/ NullLockBackend.php - Acquires a lock.
- PersistentDatabaseLockBackend::acquire in core/
lib/ Drupal/ Core/ ProxyClass/ Lock/ PersistentDatabaseLockBackend.php - Acquires a lock.
File
- core/
lib/ Drupal/ Core/ Lock/ LockBackendInterface.php, line 81 - Contains \Drupal\Core\Lock\LockBackendInterface.
Class
- LockBackendInterface
- Lock backend interface.
Namespace
Drupal\Core\LockCode
public function acquire($name, $timeout = 30.0);