13 lines
382 B
C#
13 lines
382 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Netmash.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();
|
|
}
|
|
}
|