共用方式為


SPSite.Cache property

安全執行緒快取可能會用來儲存非常少量的這SPSite相關聯的資料。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property Cache As SPSiteCollectionPropertyCache
    Get
'用途
Dim instance As SPSite
Dim value As SPSiteCollectionPropertyCache

value = instance.Cache
public SPSiteCollectionPropertyCache Cache { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPSiteCollectionPropertyCache
SPSiteCollectionPropertyCache 物件。

備註

快取儲存在記憶體中,而且會在下一步的處理序回收清空。快取項目可能會移除在刪除網站,但不是保證失效。可能需要處理序回收,使快取的項目。因為快取排清機制很關鍵非常小的值會放在快取中。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace