MediaWiki
master
ILockManager.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Wikimedia\LockManager
;
4
5
use Wikimedia\ScopedCallback;
6
10
interface
ILockManager
{
19
public
function
lockKey
(
string
$key,
int
$timeout = 0 ): bool;
20
26
public
function
unlockKey
(
string
$key ): bool;
27
35
public
function
scopedLock
(
string
$key,
int
$timeout = 0 ): ?ScopedCallback;
36
}
Wikimedia\LockManager\ILockManager
Interface representing MediaWiki's LockManager.
Definition
ILockManager.php:10
Wikimedia\LockManager\ILockManager\unlockKey
unlockKey(string $key)
Wikimedia\LockManager\ILockManager\lockKey
lockKey(string $key, int $timeout=0)
Provide a mutex of the key.
Wikimedia\LockManager\ILockManager\scopedLock
scopedLock(string $key, int $timeout=0)
Lock a key and unlock it automatically when the object is destructed.
Wikimedia\LockManager
Definition
DatabaseLockManager.php:3
includes
libs
LockManager
ILockManager.php
Generated on Sun Sep 6 2026 20:26:03 for MediaWiki by
1.10.0