You are here

public function Redis_Lock_Backend_Interface::lockAcquire in Redis 7

Same name and namespace in other branches
  1. 7.2 lib/Redis/Lock/Backend/Interface.php \Redis_Lock_Backend_Interface::lockAcquire()

Acquire lock.

Parameters

string $name: Lock name.

float $timeout = 30.0: (optional) Lock lifetime in seconds.

Return value

bool

2 methods override Redis_Lock_Backend_Interface::lockAcquire()
Redis_Lock_Backend_PhpRedis::lockAcquire in lib/Redis/Lock/Backend/PhpRedis.php
Acquire lock.
Redis_Lock_Backend_Predis::lockAcquire in lib/Redis/Lock/Backend/Predis.php
Acquire lock.

File

lib/Redis/Lock/Backend/Interface.php, line 17

Class

Redis_Lock_Backend_Interface
Lock backend interface.

Code

public function lockAcquire($name, $timeout = 30.0);