|
MediaWiki master
|
Interface representing MediaWiki's LockManager. More...
Inherited by Wikimedia\LockManager\LockManager.
Public Member Functions | |
| lockKey (string $key, int $timeout=0) | |
| Provide a mutex of the key. | |
| scopedLock (string $key, int $timeout=0) | |
| Lock a key and unlock it automatically when the object is destructed. | |
| unlockKey (string $key) | |
Interface representing MediaWiki's LockManager.
Definition at line 10 of file ILockManager.php.
| Wikimedia\LockManager\ILockManager::lockKey | ( | string | $key, |
| int | $timeout = 0 ) |
Provide a mutex of the key.
| string | $key | Key to lock (relative to a domain, usually represented by the wiki ID, which callers don't need to specify) |
| int | $timeout | Time to wait in seconds |
Implemented in Wikimedia\LockManager\LockManager.
| Wikimedia\LockManager\ILockManager::scopedLock | ( | string | $key, |
| int | $timeout = 0 ) |
Lock a key and unlock it automatically when the object is destructed.
| string | $key | |
| int | $timeout |
Implemented in Wikimedia\LockManager\LockManager.
| Wikimedia\LockManager\ILockManager::unlockKey | ( | string | $key | ) |
| string | $key | Key to unlock (relative to a domain, usually represented by the wiki ID, which callers don't need to specify) |
Implemented in Wikimedia\LockManager\LockManager.