/** * @param Lock\Handle $handle */ public function clearLock(Lock\Handle $handle) { if (!isset($this->locks[$handle->getToken()])) { return; } $key = $this->locks[$handle->getToken()]; $this->gateway->delete(['key' => $key]); unset($this->locks[$handle->getToken()]); }
/** * @param Lock\Handle $handle */ public function clearLock(Lock\Handle $handle) { if (!isset($this->locks[$handle->getToken()])) { return; } $key = $this->locks[$handle->getToken()]; $this->apc->delete($key); }