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