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)
Usage
'Usage
Dim objectCount As Long
Dim defaultTimeout As TimeSpan
Dim invalidationPolicy As DataCacheLocalCacheInvalidationPolicy
Dim instance As New DataCacheLocalCacheProperties(objectCount, defaultTimeout, invalidationPolicy)
Syntax
'Declaration
Public Sub New ( _
objectCount As Long, _
defaultTimeout As TimeSpan, _
invalidationPolicy As DataCacheLocalCacheInvalidationPolicy _
)
public DataCacheLocalCacheProperties (
long objectCount,
TimeSpan defaultTimeout,
DataCacheLocalCacheInvalidationPolicy invalidationPolicy
)
public:
DataCacheLocalCacheProperties (
long long objectCount,
TimeSpan defaultTimeout,
DataCacheLocalCacheInvalidationPolicy invalidationPolicy
)
public DataCacheLocalCacheProperties (
long objectCount,
TimeSpan defaultTimeout,
DataCacheLocalCacheInvalidationPolicy invalidationPolicy
)
public function DataCacheLocalCacheProperties (
objectCount : long,
defaultTimeout : TimeSpan,
invalidationPolicy : DataCacheLocalCacheInvalidationPolicy
)
Parameters
- objectCount
The maximum number of objects in the local cache.
- defaultTimeout
The time that objects reside in the local cache before invalidation.
- invalidationPolicy
The invalidation policy for the local cache. This can be set to either NotificationBased or TimeoutBased.
Platforms
Development Platforms
Visual Studio 2010 and later, .NET Framework 4
Target Platforms
Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2
See Also
Reference
DataCacheLocalCacheProperties Class
DataCacheLocalCacheProperties Members
Microsoft.ApplicationServer.Caching Namespace
Other Resources
Cache Clients and Local Cache
Enable Local Cache
2011-08-26