DataCacheLocalCacheProperties Class
Specifies the local cache settings for a cache client.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Inheritance Hierarchy
System.Object
Microsoft.ApplicationServer.Caching.DataCacheLocalCacheProperties
Syntax
public class DataCacheLocalCacheProperties
public ref class DataCacheLocalCacheProperties
type DataCacheLocalCacheProperties = class end
Public Class DataCacheLocalCacheProperties
Constructors
Name | Description | |
---|---|---|
DataCacheLocalCacheProperties() | Creates a new instance of the DataCacheLocalCacheProperties class. |
|
DataCacheLocalCacheProperties(Int64, TimeSpan, DataCacheLocalCacheInvalidationPolicy) | Creates a new instance of the DataCacheLocalCacheProperties class. This overloaded constructor accepts parameters that configure the properties of local cache. |
Properties
Name | Description | |
---|---|---|
DefaultTimeout | Gets the default timeout for items in the local cache. |
|
InvalidationPolicy | Gets the invalidation policy for items in the local cache. |
|
IsEnabled | Gets a Boolean value indicating whether local cache is enabled for the cache client. |
|
ObjectCount | Gets the maximum number of objects permitted in the local cache. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Remarks
To use this class, assign an instance of it to the LocalCacheProperties property of the DataCacheFactoryConfiguration class.
Note that the properties of this class are read-only. Because of this, you must use the overloaded constructor to assign values to the properties.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.ApplicationServer.Caching Namespace
Return to top