public static function isLocked($key, $expire = 120) { $instance = self::getInstance(); return $instance->getDao()->isLocked($key, $expire); }
/** * @return bool */ public function isLocked() { return Tool\Lock::isLocked($this->getLockKey(), 86400); // 24h expire }