SPCache.CreateMossObjectCache Method (String, Byte, TimeSpan, UInt64)
Creates a new cache that contains objects with the specified type name and that has the specified priority, retention period, and maximum size.
Namespace: Microsoft.Office.Server.ObjectCache
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub CreateMossObjectCache ( _
objectTypeName As String, _
priority As Byte, _
retentionPeriod As TimeSpan, _
maxBytes As ULong _
)
'Usage
Dim instance As SPCache
Dim objectTypeName As String
Dim priority As Byte
Dim retentionPeriod As TimeSpan
Dim maxBytes As ULong
instance.CreateMossObjectCache(objectTypeName, _
priority, retentionPeriod, maxBytes)
public void CreateMossObjectCache(
string objectTypeName,
byte priority,
TimeSpan retentionPeriod,
ulong maxBytes
)
Parameters
- objectTypeName
Type: System.String
- priority
Type: System.Byte
- retentionPeriod
Type: System.TimeSpan
- maxBytes
Type: System.UInt64