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 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;
} }

View File

@ -10,7 +10,8 @@ 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();
} }