function lock_acquire in Redis 7
Same name and namespace in other branches
- 7.3 redis.lock.inc \lock_acquire()
- 7.2 redis.lock.inc \lock_acquire()
File
- ./
redis.lock.inc, line 26 - Drupal core lock.inc replacement.
Code
function lock_acquire($name, $timeout = 30.0) {
return Redis_Lock::getBackend()
->lockAcquire($name, $timeout);
}