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
System_CAPS_pubmethod DataCacheLocalCacheProperties()

Creates a new instance of the DataCacheLocalCacheProperties class.

System_CAPS_pubmethod 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
System_CAPS_pubproperty DefaultTimeout

Gets the default timeout for items in the local cache.

System_CAPS_pubproperty InvalidationPolicy

Gets the invalidation policy for items in the local cache.

System_CAPS_pubproperty IsEnabled

Gets a Boolean value indicating whether local cache is enabled for the cache client.

System_CAPS_pubproperty ObjectCount

Gets the maximum number of objects permitted in the local cache.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod 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