MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​BackendsCaching­BackendOn­Item­Removed
Open sandboxFocus

CachingBackend.OnItemRemoved Method

OnItemRemoved(CacheItemRemovedEventArgs)

Raises the ItemRemoved event given a CacheItemRemovedEventArgs.

Declaration
protected void OnItemRemoved(CacheItemRemovedEventArgs args)
Parameters
Type Name Description
CacheItemRemovedEventArgs args

Event arguments.

OnItemRemoved(String, CacheItemRemovedReason, Guid)

Raises the ItemRemoved event, but lazily instantiates the CacheItemRemovedEventArgs if there is an event client.

Declaration
protected void OnItemRemoved(string key, CacheItemRemovedReason reason, Guid sourceId)
Parameters
Type Name Description
System.String key

The key of the removed cache item.

CacheItemRemovedReason reason

The reason of the removal.

System.Guid sourceId

The System.Guid of the CachingBackend instance that removed the item,. or System.Guid.Empty if the source CachingBackend cannot be determined.