using skydiveLogs_api.Domain;

namespace skydiveLogs_api.DomainBusiness.Interfaces
{
    public interface ICacheService
    {
        #region Public Methods

        bool Contains(CacheType type, int userId = 0);

        void Delete(CacheType type, int userId = 0);

        T Get<T>(CacheType type, int userId = 0);

        void Put(CacheType type, object value, int duration, int userId = 0);

        #endregion Public Methods
    }
}