Creates a CacheEntryChangeMonitor object that can trigger events in response to changes to specified cache entries.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
public override CacheEntryChangeMonitor CreateCacheEntryChangeMonitor( IEnumerable<string> keys, string regionName )
- Type: System.Collections.Generic.IEnumerable<String>
An enumeration of unique cache entry keys for the CacheEntryChangeMonitor object.
Return ValueType: System.Runtime.Caching.CacheEntryChangeMonitor
A change monitor that monitors entries in the cache.
The method creates a CacheEntryChangeMonitor instance. This specialized change monitor is used to monitor the cache entries that are specified in the keys collection and to trigger events when the entries change.
A monitored entry is considered to have changed for any of the following reasons:
The key does not exist at the time of the call to the method. In that case, the resulting CacheEntryChangeMonitor instance is immediately set to a changed state. This means that when code subsequently binds a change-notification callback, the callback is triggered immediately.
The associated cache entry was removed from the cache. This can occur if the entry is explicitly removed, if it expires, or if it is evicted to recover memory