本文整理汇总了PHP中OC\Files\Cache\Cache::clear方法的典型用法代码示例。如果您正苦于以下问题:PHP Cache::clear方法的具体用法?PHP Cache::clear怎么用?PHP Cache::clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OC\Files\Cache\Cache
的用法示例。
在下文中一共展示了Cache::clear方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
protected function tearDown()
{
if ($this->cache) {
$this->cache->clear();
}
parent::tearDown();
}
示例2: tearDown
protected function tearDown()
{
if ($this->cache) {
$this->cache->clear();
}
$result = \OC_User::deleteUser(self::$user);
$this->assertTrue($result);
$this->logout();
parent::tearDown();
}
示例3: tearDown
function tearDown()
{
$this->sharedCache->clear();
self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
$fileinfo = $this->view->getFileInfo('container/shareddir');
\OCP\Share::unshare('folder', $fileinfo['fileid'], \OCP\Share::SHARE_TYPE_USER, self::TEST_FILES_SHARING_API_USER2);
$this->view->deleteAll('container');
$this->ownerCache->clear();
parent::tearDown();
}
示例4: tearDown
public function tearDown()
{
if ($this->cache) {
$this->cache->clear();
}
$result = \OC_User::deleteUser(self::$user);
$this->assertTrue($result);
Filesystem::tearDown();
// reset app files_encryption
if ($this->stateFilesEncryption) {
\OC_App::enable('files_encryption');
}
}
示例5: tearDown
protected function tearDown()
{
if ($this->sharedCache) {
$this->sharedCache->clear();
}
self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
if ($this->view) {
$this->shareManager->deleteShare($this->_share);
$this->view->deleteAll('container');
$this->ownerCache->clear();
}
parent::tearDown();
}
示例6: tearDown
protected function tearDown()
{
if ($this->cache) {
$this->cache->clear();
}
$result = false;
$user = \OC::$server->getUserManager()->get(self::$user);
if ($user !== null) {
$result = $user->delete();
}
$this->assertTrue($result);
$this->logout();
parent::tearDown();
}
示例7: tearDown
protected function tearDown()
{
if ($this->cache) {
$this->cache->clear();
}
$result = \OC_User::deleteUser(self::$user);
$this->assertTrue($result);
Filesystem::tearDown();
Filesystem::mount($this->originalStorage, array(), '/');
// reset app files_encryption
if ($this->stateFilesEncryption) {
\OC_App::enable('files_encryption');
}
parent::tearDown();
}
示例8: tearDown
protected function tearDown()
{
if ($this->sharedCache) {
$this->sharedCache->clear();
}
self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
$shares = $this->shareManager->getSharesBy(self::TEST_FILES_SHARING_API_USER1, \OCP\Share::SHARE_TYPE_USER);
foreach ($shares as $share) {
$this->shareManager->deleteShare($share);
}
$this->view->deleteAll('container');
$this->ownerCache->clear();
parent::tearDown();
}
示例9: tearDown
public function tearDown()
{
if ($this->cache) {
$this->cache->clear();
}
}
示例10: clear
/**
* remove all entries for files that are stored on the storage from the cache
*/
public function clear()
{
$this->cache->clear();
}