SALES: 1-800-867-1380

DataCacheLocalCacheProperties Constructor (Int64, TimeSpan, DataCacheLocalCacheInvalidationPolicy)

Creates a new instance of the DataCacheLocalCacheProperties class. This overloaded constructor accepts parameters that configure the properties of local cache.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

'Declaration
Public Sub New ( _
	objectCount As Long, _
	defaultTimeout As TimeSpan, _
	invalidationPolicy As DataCacheLocalCacheInvalidationPolicy _
)
'Usage
Dim objectCount As Long
Dim defaultTimeout As TimeSpan
Dim invalidationPolicy As DataCacheLocalCacheInvalidationPolicy

Dim instance As New DataCacheLocalCacheProperties(objectCount, _
	defaultTimeout, invalidationPolicy)

Parameters

objectCount
Type: System..::..Int64
The maximum number of objects in the local cache.
defaultTimeout
Type: System..::..TimeSpan
The time that objects reside in the local cache before invalidation.
invalidationPolicy
Type: Microsoft.ApplicationServer.Caching..::..DataCacheLocalCacheInvalidationPolicy
The invalidation policy for the local cache. This can be set to either NotificationBased or TimeoutBased.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft