Fix Start of Memcache and Memcached driver tests
This commit is contained in:
parent
f4b73ea313
commit
b1fb6dccaa
@ -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;
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,8 @@ class MemcacheDriverTest extends DriverTestBase {
|
||||
{
|
||||
$this->driver = new MemcacheDriver([
|
||||
'host' => 'localhost',
|
||||
'port' => '11211'
|
||||
'port' => '11211',
|
||||
'persistent' => false,
|
||||
]);
|
||||
$this->driver->flush();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user