netmash/NDB.Extensions.Caching/Services/ICacheService.cs

13 lines
378 B
C#

using System.Threading;
using System.Threading.Tasks;
namespace NDB.Extensions.Caching.Services
{
public interface ICacheService
{
Task<T> GetAsync<T>(string key, CancellationToken token = default) where T : class;
Task SetApplicationDataAsync<T>(string key, T value, CancellationToken token = default) where T : class;
void Reset();
}
}