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