// -----------------------------------------------------------------------
//
// 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
///
internal sealed class CachedImage
{
//[PrimaryKey, AutoIncrement]
//public int Id { get; set; }
///
/// Gets or sets the key identifying the cached image.
///
[PrimaryKey]
internal string Key { get; set; }
///
/// Gets or sets the value of the cached image.
///
internal string Path { get; set; }
///
/// Gets or sets the maximum age of the cached image in days.
///
internal int MaxAge { get; set; }
///
/// Gets or sets the last write time of the cached image.
///
internal DateTime LastWriteTimeUtc { get; set; }
///
/// Gets or sets when the cached image should expire from the cache.
///
internal DateTime ExpiresUtc { get; set; }
}
}