Name
CacheItemRemovedCallback
Synopsis
Functions with the CacheItemRemovedCallback
signature can be used to respond to the onRemoveCallback
event when an item is dropped from
the cache. For example, this could allow you to perform related cleanup tasks. You are provided with the cache object, its key, and the
reason why it was removed (using the CacheItemRemovedReason
enumeration).
To use this event, pass the function name as an argument in the Cache.Insert()
method.
Public Delegate Sub CacheItemRemovedCallback(
ByVal key As String, ByVal value As Object,
ByVal reason As CacheItemRemovedReason)
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.