Compartilhar via


SPSecurityTokenServiceManager.MaxLogonTokenOptimisticCacheItems Property

Gets or sets the capacity of the of the logon security token cache. The weak cache is the maximum size of the cache used optimistically when there is sufficient free memory.

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

Syntax

'Declaration
Public Property MaxLogonTokenOptimisticCacheItems As Integer
    Get
    Set
'Usage
Dim instance As SPSecurityTokenServiceManager
Dim value As Integer

value = instance.MaxLogonTokenOptimisticCacheItems

instance.MaxLogonTokenOptimisticCacheItems = value
public int MaxLogonTokenOptimisticCacheItems { get; set; }

Property Value

Type: System.Int32
The capacity of the cache. The default is 100,000.

Remarks

The strong cache keeps the most recently used items to guarantee the token is alive during the life of the request. The weak cache can release resources by garbage collection under memory pressure.

See Also

Reference

SPSecurityTokenServiceManager Class

SPSecurityTokenServiceManager Members

Microsoft.SharePoint.Administration.Claims Namespace