Class EventCacheItem
This is a stripped down version of CacheItem Contains basic information of an item present in the cache Will be provided in QueryDataNotificationCallback or Alachisoft.NCache.Client.CacheItemRemovedCallback but only when the event is registered against Metadata or DataWithMetadata.
Inheritance
Assembly: Alachisoft.NCache.Client.dll
Syntax
public class EventCacheItem : ICloneable
Properties
CacheItemPriority
This property gets the CacheItemPriority of the item present in the cache.
Declaration
public CacheItemPriority CacheItemPriority { get; }
Property Value
Type | Description |
---|---|
CacheItemPriority | This property gets the CacheItemPriority of the item present in the cache. |
CacheItemVersion
This property gets the ItemVersion of the item.
Declaration
public CacheItemVersion CacheItemVersion { get; }
Property Value
Type | Description |
---|---|
CacheItemVersion | This property gets the ItemVersion of the item. |
EntryType
This property gets the EntryType of the item.
Declaration
public EntryType EntryType { get; }
Property Value
Type | Description |
---|---|
EntryType | This property gets the EntryType of the item. |
Group
Group of the item.
Declaration
public string Group { get; }
Property Value
Type | Description |
---|---|
System.String | Name of the group. |
ResyncOptions
This property is used to define the ResyncOptions that contains information whether the items are to be ReSynced at expiry. It also specifies the Read Through Provider name.
Declaration
public ResyncOptions ResyncOptions { get; }
Property Value
Type | Description |
---|---|
ResyncOptions | It contains information for the items that would be resynced after expiration from the Read-Thru provider. |
Methods
Clone()
Clones the event cache item instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | An event cache item instance. |
GetValue<T>()
Will return the value present in the cache, but only if the event was registered against Metadata or DataWithMetadata, otherwise it will be null.
Declaration
public T GetValue<T>()
Returns
Type | Description |
---|---|
T | Type of the value present in the cache. |
Type Parameters
Name | Description |
---|---|
T | Type of the value present in the cache. |