// ----------------------------------------------------------------------- // // Copyright (c) James South. // Licensed under the Apache License, Version 2.0. // // ----------------------------------------------------------------------- namespace ImageProcessor.Web.Caching { #region Using using System; using SQLite; #endregion /// /// Describes a cached image /// public sealed class CachedImage { /// /// Gets or sets the id identifying the cached image. /// [PrimaryKey, AutoIncrement] public int Id { get; set; } /// /// Gets or sets the key identifying the cached image. /// [Unique] public string Key { get; set; } /// /// Gets or sets the value of the cached image. /// public string Path { get; set; } /// /// Gets or sets the maximum age of the cached image in days. /// public int MaxAge { 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; } } }