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 string $key
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
|
* @param int $expires
|
||||||
* @return DriverInterface
|
* @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;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,4 +130,4 @@ class MemcachedDriver extends Driver {
|
|||||||
{
|
{
|
||||||
return $this->conn->flush();
|
return $this->conn->flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,9 @@ class MemcacheDriverTest extends DriverTestBase {
|
|||||||
{
|
{
|
||||||
$this->driver = new MemcacheDriver([
|
$this->driver = new MemcacheDriver([
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'port' => '11211'
|
'port' => '11211',
|
||||||
|
'persistent' => false,
|
||||||
]);
|
]);
|
||||||
$this->driver->flush();
|
$this->driver->flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user