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 |
---|---|
DateTime |
Examples
Example prints creation time of a cache item
CacheItem item = cache.GetCacheItem("Product0");
Console.WriteLine("Last Modified Time: {0}", item.LastModifiedTime.ToString());