This commit is contained in:
MarcEricMartel
2022-10-25 07:54:11 -07:00
parent 16c9adb92b
commit 1fcd149de4
3 changed files with 54 additions and 16 deletions

View File

@@ -60,5 +60,15 @@ namespace GrossesMitainesAPI.Services {
}
return copy;
}
public IQueryable<Product> queryCache() {
if (!_ok) return null;
try {
return _cache.AsQueryable();
} catch (Exception e) {
_logger.LogError(e, "Erreur de cache.");
return null;
}
}
}
}