CacheEntryUpdateArguments Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides information about a cache entry that will be removed from the cache.
public ref class CacheEntryUpdateArguments
public class CacheEntryUpdateArguments
type CacheEntryUpdateArguments = class
Public Class CacheEntryUpdateArguments
- Inheritance
-
CacheEntryUpdateArguments
The arguments in the CacheEntryUpdateArguments class contain details about an entry that the cache implementation is about to remove. The arguments include a key to the cache entry, a reference to the ObjectCache instance that the entry will be removed from, a reason for the removal, and the region name in the cache that contains the entry. The constructor of the CacheEntryUpdateArguments class uses these arguments to create a new instance of the class.
A CacheEntryUpdateArguments object is passed to a CacheEntryUpdateCallback handler, which notifies the cache about the entry to remove.
A callback handler must notify the cache implementation whether to insert a replacement entry into the cache in place of the cache entry that is about to be removed. If you want to exchange cache entries, you must assign a value other than null
to the UpdatedCacheItem property. Cache implementations will interpret a null
value for the UpdatedCacheItem property as a notice that the current cache entry should be removed but not replaced.
Cache |
Initializes a new instance of the CacheEntryUpdateArguments class. |
Key |
Gets the unique identifier for a cache entry that is about to be removed. |
Region |
Gets the name of a region in the cache that contains a cache entry. |
Removed |
Gets the reason that a cache entry is about to be removed from the cache. |
Source |
Gets a reference to the ObjectCache instance that contains a cache entry that is about to be removed. |
Updated |
Gets or sets the value of CacheItem entry that is used to update the cache object. |
Updated |
Gets or sets the cache eviction or expiration policy of the CacheItem entry that is updated. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: