• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

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 of CacheItem stores the last modified time of the cache item.

Examples

Example prints creation time of a cache item

CacheItem item = cache.GetCacheItem("Product0");
Console.WriteLine("Last Modified Time: {0}", item.LastModifiedTime.ToString());
Back to top Copyright © 2017 Alachisoft