←Select platform

CacheItemExpiring Event

Summary

Occurs when an item has expired and is about to be removed from the cache.

Syntax
C#
C++/CLI
Java
Python
public event EventHandler<CacheItemExpiringEventArgs> CacheItemExpiring 
public:  
   event EventHandler<Leadtools::Caching::CacheItemExpiringEventArgs^>^ CacheItemExpiring 
public abstract CacheItemExpiringEvent cacheItemExpiring() 
def CacheItemExpiring(sender,e): # sender: ObjectCache e: CacheItemExpiringEventArgs 
Remarks

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

Key

The expiring item key.

RegionName

The expiring item region name.

Abort

Allows the user to abort this operation. Resulting on the item being left in the cache.

Event Data
ParameterTypeDescription
senderobjectThe source of the event.
eCacheItemExpiringEventArgsThe event data.
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.