SPCache.CreateMossObjectCache Method (String, Byte, TimeSpan, UInt64, Boolean)

Creates a new cache that contains objects with the specified type name and that has the specified priority, retention period, maximum size and expiration policy.

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, _
    expireRecursively As Boolean _
)
'Usage
Dim instance As SPCache
Dim objectTypeName As String
Dim priority As Byte
Dim retentionPeriod As TimeSpan
Dim maxBytes As ULong
Dim expireRecursively As Boolean

instance.CreateMossObjectCache(objectTypeName, _
    priority, retentionPeriod, maxBytes, _
    expireRecursively)
public void CreateMossObjectCache(
    string objectTypeName,
    byte priority,
    TimeSpan retentionPeriod,
    ulong maxBytes,
    bool expireRecursively
)

Parameters

  • expireRecursively
    Type: System.Boolean
    A Boolean value that determines whether child objects will expire when a parent object expires.

See Also

Reference

SPCache Class

SPCache Members

CreateMossObjectCache Overload

Microsoft.Office.Server.ObjectCache Namespace