Files
parr_api/PARR.DAL/CacheServices/IRedisCacheService.cs

14 lines
343 B
C#
Raw Normal View History

2023-11-30 16:18:14 +10:00
namespace PARR.DAL.CacheServices
{
public interface IRedisCacheService
{
T? GetCachedData<T>(string key);
Task<T?> GetCachedDataAsync<T>(string key);
void SetCachedData<T>(string key, T data, TimeSpan cacheDuration);
Task SetCachedDataAsync<T>(string key, T data, TimeSpan cacheDuration);
}
}