3 Commits
1.0.2 ... 1.0.5

Author SHA1 Message Date
Jean-Baptiste Nahan
68072f9008 Update composer.json 2016-11-09 21:05:18 +01:00
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
3 changed files with 6 additions and 3 deletions

View File

@@ -10,8 +10,7 @@
}
],
"require": {
"php": ">=5.4",
"jms/serializer": "~1.0"
"php": ">=5.4"
},
"require-dev": {
"atoum/atoum": "master-dev"

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);
}
/**