Set-SPOfficeWebAppsCache

 

適用版本: SharePoint Server 2010

上次修改主題的時間: 2015-03-09

修改 Microsoft Office Web Apps 快取的屬性。

Syntax

Set-SPOfficeWebAppsCache [-WebApplication] <SPWebApplicationPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-ExpirationPeriodInDays <Int32>] [-MaxFrontEndCacheSizeInMB <Int32>] [-MaxFrontEndDocumentInfoCacheItems <UInt32>] [-MaxSizeInBytes <Int64>] [-Owner <SPUser>] [-WarningSizeInBytes <Int64>] [-WhatIf [<SwitchParameter>]]

Set-SPOfficeWebAppsCache -Site <SPSitePipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-ExpirationPeriodInDays <Int32>] [-MaxFrontEndCacheSizeInMB <Int32>] [-MaxFrontEndDocumentInfoCacheItems <UInt32>] [-MaxSizeInBytes <Int64>] [-Owner <SPUser>] [-WarningSizeInBytes <Int64>] [-WhatIf [<SwitchParameter>]]

詳細描述

Set-SPOfficeWebAppsCache cmdlet 可變更關聯至指定 Web 應用程式快取之網站集合的屬性。除可修改 SPSitePipeBind 物件的所有屬性之外,Set-SPOfficeWebAppsCache cmdlet 也可用於修改所儲存之轉譯的期限。

Parameters

參數 必要 類型 描述

WebApplication

必要

Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind

指定包含 Office Web Apps 快取的 Web 應用程式。

Site

必要

Microsoft.SharePoint.PowerShell.SPSitePipeBind

指定 Office Web Apps 快取網站集合。

AssignmentCollection

選用

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

為能適當處置物件而管理物件。使用 SPWebSPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。使用 SPWebSPSiteSPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

注意

使用 Global 參數時,所有物件會包含在全域儲存區內。若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。

Confirm

選用

System.Management.Automation.SwitchParameter

執行命令之前,會先提示您進行確認。如需詳細資訊,請輸入下列命令:get-help about_commonparameters

WarningSizeInBytes

選用

System.Int64

指定閾值 (以位元組為單位),當達到此值時,擁有者將會收到 Office Web Apps 快取已接近其配額限制的警示。預設值為 0

ExpirationPeriodInDays

選用

System.Nullable

指定自建立時間起算而必須儲存快取之轉譯的經過時間量。預設值為 30

MaxFrontEndCacheSizeInMB

選用

System.Int32

指定快取允許耗用的記憶體容量 (以 MB 為單位)。

預設值為 75。

MaxFrontEndDocumentInfoCacheItems

選用

System.UInt32

指定可新增到快取的項目數目上限。

預設值為 1,000。

MaxSizeInBytes

選用

System.Int64

指定 Office Web Apps 快取的大小 (以位元組為單位)。超出限制後,下一個到期計時器工作會移除快取中最舊的項目,直到快取回復至配額以下為止。預設值為 107374182400

Owner

選用

Microsoft.SharePoint.SPUser

指定 Office Web Apps 快取的擁有者。

WarningSizeInBytes

選用

System.Int64

當 Office Web Apps 快取大小達到此參數所指定的大小時,就會傳送通知給網站集合擁有者,告知擁有者快取已接近其配額。

WhatIf

選用

System.Management.Automation.SwitchParameter

顯示訊息描述命令效果,而非描述命令執行的效果。如需詳細資訊,請輸入下列命令:get-help about_commonparameters

輸入類型

傳回類型

Example

-------------範例--------------

Get-SPWebApplication | Set-SPOfficeWebAppsCache -ExpirationPeriod 30

此範例會列舉伺服器陣列的所有 Web 應用程式,並將各 Web 應用程式之 Office Web Apps 快取的期限設定為 30