当前位置: 首页>>代码示例>>PHP>>正文


PHP Cache::clear方法代码示例

本文整理汇总了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();
 }
开发者ID:0x17de,项目名称:core,代码行数:7,代码来源:scanner.php

示例2: tearDown

 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     $this->logout();
     parent::tearDown();
 }
开发者ID:kebenxiaoming,项目名称:core,代码行数:10,代码来源:updaterlegacy.php

示例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();
 }
开发者ID:Romua1d,项目名称:core,代码行数:10,代码来源:watcher.php

示例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');
     }
 }
开发者ID:olucao,项目名称:owncloud-core,代码行数:13,代码来源:updater.php

示例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();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:13,代码来源:WatcherTest.php

示例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();
 }
开发者ID:TechArea,项目名称:core,代码行数:14,代码来源:updaterlegacy.php

示例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();
 }
开发者ID:heldernl,项目名称:owncloud8-extended,代码行数:15,代码来源:updaterlegacy.php

示例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();
 }
开发者ID:stweil,项目名称:owncloud-core,代码行数:14,代码来源:cache.php

示例9: tearDown

 public function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
 }
开发者ID:Romua1d,项目名称:core,代码行数:6,代码来源:cache.php

示例10: clear

 /**
  * remove all entries for files that are stored on the storage from the cache
  */
 public function clear()
 {
     $this->cache->clear();
 }
开发者ID:kebenxiaoming,项目名称:owncloudRedis,代码行数:7,代码来源:cachewrapper.php


注:本文中的OC\Files\Cache\Cache::clear方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。