You are here

function lock_acquire in Redis 7.3

Same name and namespace in other branches
  1. 7 redis.lock.inc \lock_acquire()
  2. 7.2 redis.lock.inc \lock_acquire()

File

./redis.lock.inc, line 35
Drupal core lock.inc replacement.

Code

function lock_acquire($name, $timeout = 30.0) {
  return Redis_Lock::getBackend()
    ->lockAcquire($name, $timeout);
}