CacheEntryUpdateArguments.UpdatedCacheItemPolicy Property

.NET Framework (current version)

Gets or sets the cache eviction or expiration policy of the CacheItem entry that is updated.

Namespace:   System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public CacheItemPolicy UpdatedCacheItemPolicy { get; set; }

Property Value

Type: System.Runtime.Caching.CacheItemPolicy

The cache eviction or expiration policy of the cache item that was updated. The default is null.

If you want to replace a cache entry that is about to be removed with an updated cache entry, you can optionally assign a CacheItemPolicy object to the UpdatedCacheItemPolicy property. The CacheItemPolicy object enables you to specify cache policy (such as expiration details) for the updated cache entry.

For more information about how to replace a removed cache entry by using an updated one, see the CacheEntryUpdateArguments class overview and the UpdatedCacheItem property.

.NET Framework
Available since 4.0
Return to top