當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。