DataCacheNotificationProperties Class
Specifies the notification settings for a cache client. Applies only to the server versions of AppFabric.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Inheritance Hierarchy
System.Object
Microsoft.ApplicationServer.Caching.DataCacheNotificationProperties
Syntax
public class DataCacheNotificationProperties
public ref class DataCacheNotificationProperties
type DataCacheNotificationProperties = class end
Public Class DataCacheNotificationProperties
Constructors
Name | Description | |
---|---|---|
DataCacheNotificationProperties(Int64, TimeSpan) | Creates a new instance of the DataCacheNotificationProperties class. |
Properties
Name | Description | |
---|---|---|
MaxQueueLength | Gets the maximum queue length for notifications on the cache cluster. |
|
PollInterval | Gets the polling interval that the cache client uses to check for notifications on the cache cluster. |
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 NotificationProperties property of the DataCacheFactoryConfiguration class. In to use notifications, you need to enable them on a named cache. In Microsoft AppFabric 1.1 for Windows Server Caching, use the notificationsEnabled parameter with the New-Cache or Set-CacheConfig Windows PowerShell commands. In Windows Azure Caching, enable notifications in the Caching configuration of the role that hosts the cache.
Notifications can be used for callbacks, such as a notification that an item has been removed from the cache. Notifications are also used to update locally cached items when the local cache invalidation policy is set to NotificationBased.
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