acquireLock($key, $timeout, $ttl); } /** * @brief Releases a lock if it was set by us * * @param string $key Name of the lock * @param bool $override Overrides the lock to get releases * * @return void * @throws \Exception */ public static function release($key, $override = false) { return self::getClass(ILockDriver::class)->releaseLock($key, $override); } /** * @brief Releases all lock that were set by us * @return void * @throws \Exception */ public static function releaseAll() { self::getClass(ILockDriver::class)->releaseAll(); } }