public static function Redis_Lock::getBackend in Redis 7
Same name and namespace in other branches
- 7.3 lib/Redis/Lock.php \Redis_Lock::getBackend()
- 7.2 lib/Redis/Lock.php \Redis_Lock::getBackend()
Get actual lock backend.
Return value
File
- lib/
Redis/ Lock.php, line 29
Class
- Redis_Lock
- Lock backend singleton handling.
Code
public static function getBackend() {
if (!isset(self::$__instance)) {
throw new Exception("No lock backend set.");
}
return self::$__instance;
}