private function getImpl()
{
if ($this->redis === null) {
$this->redis = new \Redis();
}
if (!$this->redis->isConnected()) {
$this->redis->connect($this->host, $this->port);
}
if (!empty($this->user) && !empty($this->pwd)) {
Verify::isTrue($this->redis->auth($this->user . ":" . $this->pwd), $this->redis->getLastError());
}
return $this->redis;
}