4 Commits

Author SHA1 Message Date
Jean-Baptiste Nahan
f675b04591 Update composer.json 2019-04-02 09:16:38 +02:00
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 9 additions and 5 deletions

View File

@@ -6,12 +6,11 @@
"authors": [
{
"name": "Jean-Baptiste Nahan",
"email": "jbnahan@gmail.com"
"email": "macintoshplus@users.noreply.github.com"
}
],
"require": {
"php": ">=5.4",
"jms/serializer": "~1.0"
"php": ">=5.4"
},
"require-dev": {
"atoum/atoum": "master-dev"
@@ -31,5 +30,6 @@
"branch-alias": {
"dev-master": "1.x-dev"
}
}
},
"abandoned": "psr/simple-cache"
}

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