using System.Threading.Tasks;

namespace BLL.Interfaces
{
    public interface ICacheService
    {
        ValueTask<T> GetAsync<T>(string key);
        ValueTask SetAsync<T>(string key, T value, int expirationMinutes = 30);
        ValueTask RemoveAsync(string key);
        ValueTask<bool> ExistsAsync(string key);
    }
}
