Fix Start of Memcache and Memcached driver tests

This commit is contained in:
Timothy Warren 2016-09-06 15:43:25 +00:00
parent f4b73ea313
commit b1fb6dccaa
2 changed files with 7 additions and 5 deletions

View File

@ -90,11 +90,12 @@ class MemcachedDriver extends Driver {
*
* @param string $key
* @param mixed $value
* @param int $expires
* @return DriverInterface
*/
public function set($key, $value)
public function set($key, $value, $expires = 0)
{
$this->conn->set($key, $value);
$this->conn->set($key, $value, $expires);
return $this;
}
@ -129,4 +130,4 @@ class MemcachedDriver extends Driver {
{
return $this->conn->flush();
}
}
}

View File

@ -10,8 +10,9 @@ class MemcacheDriverTest extends DriverTestBase {
{
$this->driver = new MemcacheDriver([
'host' => 'localhost',
'port' => '11211'
'port' => '11211',
'persistent' => false,
]);
$this->driver->flush();
}
}
}