feat(api): управление ролями пользователя

This commit is contained in:
Mikhail Trubnikov
2023-12-06 10:20:20 +10:00
parent 3a5978a7f9
commit 437b1a4e7c
7 changed files with 243 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ namespace PARR.DAL.CacheServices
public async Task<T?> GetCachedDataAsync<T>(string key)
{
var jsonData = await cache.GetStringAsync(key);
if (jsonData == null)
return default(T);
@@ -58,6 +58,16 @@ namespace PARR.DAL.CacheServices
}
public async Task DeleteCachedDataAsync(string key)
{
await cache.RemoveAsync(key);
}
public void DeleteCachedData(string key)
{
cache.Remove(key);
}
}
}