Nucleus .Net Core CMS

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.
CacheItemRemoveEventArgs (ICacheCollection cache, Object key, String itemType)
Constructor used when creating an instance to prepresent an event.
Parameters
Name Type
cache Nucleus.Abstractions.Models.Cache.ICacheCollection
key Object
itemType String
CacheItemRemoveEventArgs (String cacheName, String key, String itemType)
Alternative constructor.
Parameters
Name Type
cacheName String
key String
itemType String
Name of the cache.
Item type (class name) of the cache item that was removed, used for logging and troubleshooting.
Key of the cache item that was removed, converted to a string using .ToString()
ToString ()