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;
}