feat(dal): IRedisCacheService

This commit is contained in:
Mikhail Trubnikov
2023-11-30 16:18:14 +10:00
parent 9bf3055f1f
commit e00826c398
12 changed files with 2904 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
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);
}
}