From b1fb6dccaabe08eef78d8fa2fa99ff381b66866d Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 6 Sep 2016 15:43:25 +0000 Subject: [PATCH] Fix Start of Memcache and Memcached driver tests --- src/Driver/MemcachedDriver.php | 7 ++++--- tests/Driver/MemcacheDriverTest.php | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Driver/MemcachedDriver.php b/src/Driver/MemcachedDriver.php index db4ee64..4d7af38 100644 --- a/src/Driver/MemcachedDriver.php +++ b/src/Driver/MemcachedDriver.php @@ -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(); } -} \ No newline at end of file +} diff --git a/tests/Driver/MemcacheDriverTest.php b/tests/Driver/MemcacheDriverTest.php index 0315608..550df91 100644 --- a/tests/Driver/MemcacheDriverTest.php +++ b/tests/Driver/MemcacheDriverTest.php @@ -10,8 +10,9 @@ class MemcacheDriverTest extends DriverTestBase { { $this->driver = new MemcacheDriver([ 'host' => 'localhost', - 'port' => '11211' + 'port' => '11211', + 'persistent' => false, ]); $this->driver->flush(); } -} \ No newline at end of file +}