Example #1
0
 /**
  * Releases the lock for the given Request.
  *
  * @param Request $request A Request instance
  *
  * @return Boolean False if the lock file does not exist or cannot be unlocked, true otherwise
  */
 public function unlock(Request $request)
 {
     $metadataKey = $this->getMetadataKey($request);
     $this->client->createConnection();
     $result = $this->client->hdel($this->lock_key, $metadataKey);
     $this->client->close();
     return $result == 1;
 }