DotNetHelper-Caching by Joseph McNeal Jr

<PackageReference Include="DotNetHelper-Caching" Version="2018.6.2.4" />

 CacheRepository<T>

public abstract class CacheRepository<T> : ISingleCacheRepository<T>

public TimeSpan ExpirationTime { get; }

public string KeyName { get; }

protected CacheRepository(ICacheService cacheManager, TimeSpan expirationTime)

protected CacheRepository(ICacheService cacheManager, TimeSpan expirationTime, string keyName)

public void DoAction(ActionType action, T data)

public void DoActionList(ActionType action, IEnumerable<T> data)

public T GetData(T defaultValue = null)

public T GetData(Func<T> callbackToGetData)

public IEnumerable<T> GetList(IEnumerable<T> defaultValue = null)

public IEnumerable<T> GetList(Func<IEnumerable<T>> callbackToGetData)