using System; using System.Threading; using System.Threading.Tasks; namespace Ombi.Helpers { public interface ICacheService { Task GetOrAddAsync(string cacheKey, Func> factory, DateTimeOffset absoluteExpiration = default); T GetOrAdd(string cacheKey, Func factory, DateTimeOffset absoluteExpiration); void Remove(string key); } }