mirror of
https://github.com/Mactronique/phpcache.git
synced 2026-03-24 08:52:12 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f675b04591 | ||
|
|
68072f9008 | ||
|
|
ddf7b341da | ||
|
|
e2de4cdd23 |
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user