mirror of
https://github.com/Mactronique/phpcache.git
synced 2026-03-25 01:12:06 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddf7b341da | ||
|
|
e2de4cdd23 |
@@ -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