feat(dal): IRedisCacheService
This commit is contained in:
13
PARR.DAL/CacheServices/IRedisCacheService.cs
Normal file
13
PARR.DAL/CacheServices/IRedisCacheService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user