Add caching to month summary results

This commit is contained in:
2023-05-18 11:49:35 +02:00
parent d6fbf33c7c
commit 71b6fe37a0
4 changed files with 75 additions and 37 deletions

View File

@@ -0,0 +1,9 @@
namespace Solar.Api.Constants;
internal static class CacheKeys
{
public static string GetMonthSummaryCacheKey(string source, int year, int month)
{
return $"month-summary-{source}-{year}-{month}";
}
}