SPSiteCollectionPropertyCache class

A thread-safe cache that may be used to store very small amounts of data associated with this [Microsoft.SharePoint.SPSite]. Fetch an instance from [Microsoft.SharePoint.SPSite.Cache].

Inheritance hierarchy


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


<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPSiteCollectionPropertyCache
Dim instance As SPSiteCollectionPropertyCache
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPSiteCollectionPropertyCache


The cache is stored in memory and will be emptied during the next process recycle. Cache entries can be removed during site deletion but object invalidation is not assured. A process recycle may be required to invalidate cached entries. It is critical that only very small values are placed in the cache because the cache has no flush mechanism.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also


SPSiteCollectionPropertyCache members

Microsoft.SharePoint.Administration namespace