📷 A modern, cross-platform, 2D Graphics library for .NET
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.
 
 

32 lines
716 B

namespace ImageProcessor.Web.Caching
{
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System.Web;
public interface IImageCache
{
/// <summary>
/// Gets or sets any additional settings required by the cache.
/// </summary>
Dictionary<string, string> Settings { get; set; }
string CachedPath { get; }
int MaxDays { get; }
Task<bool> IsNewOrUpdatedAsync();
Task AddImageToCacheAsync(Stream stream);
Task TrimCacheAsync();
Task<string> CreateCachedFileName();
void RewritePath(HttpContext context);
//void SetHeaders(HttpContext context);
}
}