Models.Cache.CacheItemRemoveEventArgs Class
Namespace: Nucleus.Abstractions.Models.Cache
Assembly: Nucleus.Abstractions.dll
Class used to represent a cache item removed event. This class is used by event handlers, and is also seralized and deserialized to JSON for transmission to the load blancing cache controller.
Constructors
CacheItemRemoveEventArgs
(ICacheCollection, Object, String) Constructor
CacheItemRemoveEventArgs (ICacheCollection cache, Object key, String itemType)
Constructor used when creating an instance to prepresent an event.
CacheItemRemoveEventArgs
(String, String, String) Constructor
CacheItemRemoveEventArgs (String cacheName, String key, String itemType)
Alternative constructor.
Properties
CacheName
Property
Name of the cache.
ItemType
Property
Item type (class name) of the cache item that was removed, used for logging and troubleshooting.
Key
Property
Key of the cache item that was removed, converted to a string using .ToString()