diff --git a/EgwCoreLib.Lux.Data/Services/Admin/VocabolarioService.cs b/EgwCoreLib.Lux.Data/Services/Admin/VocabolarioService.cs
index e75b8d40..0393e63e 100644
--- a/EgwCoreLib.Lux.Data/Services/Admin/VocabolarioService.cs
+++ b/EgwCoreLib.Lux.Data/Services/Admin/VocabolarioService.cs
@@ -85,49 +85,49 @@ namespace EgwCoreLib.Lux.Data.Services.Admin
/// > GetAllAsync()
{
- return await TraceAsync($"{_className}.GetAllAsync", async (activity) =>
- {
- return await GetOrSetCacheAsync(
- $"{_redisBaseKey}:{_className}:ALL",
- async () => await _repo.GetAllAsync()
- );
- });
+ return await GetOrFetchAsync(
+ "GetAllAsync",
+ $"{_redisBaseKey}:{_className}:ALL",
+ () => _repo.GetAllAsync(),
+ base.LongCache,
+ _className
+ );
}
///
> GetByLang(string lingua)
{
- return await TraceAsync($"{_className}.GetByLang", async (activity) =>
- {
- return await GetOrSetCacheAsync(
- $"{_redisBaseKey}:{_className}:GetByLang:{lingua}",
- async () => await _repo.GetByLang(lingua)
- );
- });
+ return await GetOrFetchAsync(
+ "GetByLang",
+ $"{_redisBaseKey}:{_className}:GetByLang:{lingua}",
+ () => _repo.GetByLang(lingua),
+ base.LongCache,
+ _className
+ );
}
///
> ListLingueAsync()
{
- return await TraceAsync($"{_className}.ListLingueAsync", async (activity) =>
- {
- return await GetOrSetCacheAsync(
- $"{_redisBaseKey}:{_className}:Lingue",
- async () => await _repo.ListLingueAsync()
- );
- });
+ return await GetOrFetchAsync(
+ "ListLingueAsync",
+ $"{_redisBaseKey}:{_className}:Lingue",
+ () => _repo.ListLingueAsync(),
+ base.LongCache,
+ _className
+ );
}
///
-