// ----------------------------------------------------------------------- // // Copyright (c) James South. // Dual licensed under the MIT or GPL Version 2 licenses. // // ----------------------------------------------------------------------- namespace ImageProcessor.Web.Caching { #region Using using System; #endregion /// /// Describes a cached image /// internal sealed class CachedImage { /// /// Initializes a new instance of the class. /// /// /// The value of the cached item. /// /// /// The last write time of the cached item. /// /// /// The expires time. /// public CachedImage(string path, DateTime lastWriteTimeUtc, DateTime expiresTimeUtc) { this.Path = path; this.LastWriteTimeUtc = lastWriteTimeUtc; this.ExpiresUtc = expiresTimeUtc; } /// /// Gets or sets the value of the cached image /// public string Path { get; set; } /// /// Gets or sets the last write time of the cached image /// public DateTime LastWriteTimeUtc { get; set; } /// /// Gets or sets when the cached image should expire from the cache. /// public DateTime ExpiresUtc { get; set; } } }