Share via


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

See Also

Reference

SPCache Class

SPCache Members

CreateMossObjectCache Overload

Microsoft.Office.Server.ObjectCache Namespace