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 bool * @throws \Exception */ public static function release($key, $override = false) { return DI::lock()->releaseLock($key, $override); } /** * @brief Releases all lock that were set by us * @return void * @throws \Exception */ public static function releaseAll() { DI::lock()->releaseAll(); } }