using System; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace Data.Abstractions { public interface IDataValueCache where T : class { void SetCacheItem(Func, Task> itemGetter, string keyName, TimeSpan? expirationTime = null); Task GetCacheItem(string keyName); } }