12 lines
371 B
C#
12 lines
371 B
C#
namespace Core.Cerberos.Infraestructure.Caching.Contracts
|
|
{
|
|
public interface ICacheService
|
|
{
|
|
Task<T> GetAsync<T>(string key);
|
|
Task SetAsync<T>(string key, T value, TimeSpan? expiry = null);
|
|
Task RemoveAsync(string key);
|
|
Task<bool> ExistsAsync(string key);
|
|
Task RefreshAsync(string key, TimeSpan? expiry = null);
|
|
}
|
|
}
|