public function Redis_Lock_BackendInterface::lockAcquire in Redis 7.3
Acquire lock.
Parameters
string $name: Lock name.
float $timeout = 30.0: (optional) Lock lifetime in seconds.
Return value
bool
2 methods override Redis_Lock_BackendInterface::lockAcquire()
- Redis_Lock_PhpRedis::lockAcquire in lib/
Redis/ Lock/ PhpRedis.php - Acquire lock.
- Redis_Lock_Predis::lockAcquire in lib/
Redis/ Lock/ Predis.php - Acquire lock.
File
- lib/
Redis/ Lock/ BackendInterface.php, line 17
Class
- Redis_Lock_BackendInterface
- Lock backend interface.
Code
public function lockAcquire($name, $timeout = 30.0);