Skip to content

Instantly share code, notes, and snippets.

@dmora
Created April 9, 2014 04:15
Show Gist options
  • Save dmora/10225526 to your computer and use it in GitHub Desktop.
Save dmora/10225526 to your computer and use it in GitHub Desktop.
/**
* @return bool
*/
public function close()
{
$result = TRUE;
if ($this->connected && !$this->persistent) {
try {
$result = $this->standalone ? fclose($this->redis) : $this->redis->close();
$this->connected = FALSE;
} catch (Exception $e) {
; // Ignore exceptions on close
}
}
return $result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment