mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.4 KiB
51 lines
1.4 KiB
// -----------------------------------------------------------------------
|
|
// <copyright file="CachedImage.cs" company="James South">
|
|
// Copyright (c) James South.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
// -----------------------------------------------------------------------
|
|
|
|
namespace ImageProcessor.Web.Caching
|
|
{
|
|
#region Using
|
|
using System;
|
|
|
|
using SQLite;
|
|
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// Describes a cached image
|
|
/// </summary>
|
|
internal sealed class CachedImage
|
|
{
|
|
//[PrimaryKey, AutoIncrement]
|
|
//public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the key identifying the cached image.
|
|
/// </summary>
|
|
[PrimaryKey]
|
|
internal string Key { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the value of the cached image.
|
|
/// </summary>
|
|
internal string Path { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the maximum age of the cached image in days.
|
|
/// </summary>
|
|
internal int MaxAge { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the last write time of the cached image.
|
|
/// </summary>
|
|
internal DateTime LastWriteTimeUtc { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets when the cached image should expire from the cache.
|
|
/// </summary>
|
|
internal DateTime ExpiresUtc { get; set; }
|
|
}
|
|
}
|
|
|