Skip to content

Commit

Permalink
set dataTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
andruha committed Apr 14, 2016
1 parent bbb6a93 commit 3a80c2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ public function open()
}

if ($connected) {
if ($this->dataTimeout !== null) {
$this->_client->setOption(\Redis::OPT_READ_TIMEOUT, (int)$this->dataTimeout);
}
if ($this->password !== null) {
$this->executeCommand('AUTH', [$this->password]);
}
Expand Down

0 comments on commit 3a80c2b

Please sign in to comment.