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

13 lines
382 B
C#
Raw Normal View History

2021-04-25 03:50:14 +03:00
using System.Threading;
using System.Threading.Tasks;
2023-01-12 01:01:36 +02:00
namespace Netmash.Extensions.Caching.Services
2021-04-25 03:50:14 +03:00
{
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();
}
}