Occurs when an item has expired and is about to be removed from the cache.
public event EventHandler<CacheItemExpiringEventArgs> CacheItemExpiring
The ObjectCache.CacheItemExpiring event occurs when an item has expired and is about to be removed from the cache. This event will receive an object of type CacheItemExpiringEventArgs populated as follows:
Member | Value |
---|---|
The expiring item key. |
|
The expiring item region name. |
|
Allows the user to abort this operation. Resulting on the item being left in the cache. |
Parameter | Type | Description |
---|---|---|
sender | object | The source of the event. |
e | CacheItemExpiringEventArgs | The event data. |