Share via


SPSecurityTokenServiceManager.MaxLogonTokenCacheItems property

Gets or sets the capacity of the of the logon security token cache. The strong cache is the minimum guaranteed size of the cache.

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

Syntax

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

value = instance.MaxLogonTokenCacheItems

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

Property value

Type: System.Int32
The capacity of the cache. The default is 250.

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