[Cache] Fixed Memcached adapter doClear()to call flush()
This commit is contained in:
parent
317a2f9787
commit
447baacbad
@ -192,4 +192,9 @@ class MemcachedAdapterTest extends AdapterTestCase
|
|||||||
array(\Memcached::OPT_SOCKET_RECV_SIZE => 1, \Memcached::OPT_SOCKET_SEND_SIZE => 2, \Memcached::OPT_RETRY_TIMEOUT => 8),
|
array(\Memcached::OPT_SOCKET_RECV_SIZE => 1, \Memcached::OPT_SOCKET_SEND_SIZE => 2, \Memcached::OPT_RETRY_TIMEOUT => 8),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testClear()
|
||||||
|
{
|
||||||
|
$this->assertTrue($this->createCachePool()->clear());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -260,7 +260,7 @@ trait MemcachedTrait
|
|||||||
*/
|
*/
|
||||||
protected function doClear($namespace)
|
protected function doClear($namespace)
|
||||||
{
|
{
|
||||||
return false;
|
return '' === $namespace && $this->getClient()->flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function checkResultCode($result)
|
private function checkResultCode($result)
|
||||||
|
Reference in New Issue
Block a user