2 Commits
1.0.2 ... 1.0.4

Author SHA1 Message Date
Jean-Baptiste Nahan
ddf7b341da Fix #2 2016-09-01 13:29:25 +02:00
macintoshplus
e2de4cdd23 Add auth for redis 2015-10-12 13:42:45 +02:00
2 changed files with 5 additions and 1 deletions

View File

@@ -113,6 +113,10 @@ class RedisDriver implements Driver
throw new ServerException('Error Unable to connect to server');
}
if (!empty($password)) {
$this->client->auth($password);
}
if (null !== $database) {
$this->client->select($database);
}

View File

@@ -51,7 +51,7 @@ class PhpCache
*/
public function set($key, $value, $ttl = null, $driverName = null)
{
return $this->getDriver($driverName)->set($key, $value, $ttl = null);
return $this->getDriver($driverName)->set($key, $value, $ttl);
}
/**