Property LastModifiedTime
LastModifiedTime
This property of CacheItem stores the last modified time of the cache item. If an item is updated in cache its last modified time is updated as well. Last modified time is checked when Least Recently Used based eviction is triggered.
Declaration
public DateTime LastModifiedTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime | This property specifies the last modification time of the cache. |
Examples
The following example prints creation time of a CacheItem.
CacheItem item = cache.GetCacheItem("Product0");
Console.WriteLine("Last Modified Time: {0}", item.LastModifiedTime.ToString());