From 50fd1d77e2f998119c2119c5b1622d94de707c5e Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Mon, 16 Oct 2023 16:24:27 +0500 Subject: [PATCH] Fix CacheBase. Set cacheEntry.Value. --- AsbCloudInfrastructure/Repository/CacheBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AsbCloudInfrastructure/Repository/CacheBase.cs b/AsbCloudInfrastructure/Repository/CacheBase.cs index a66dbc37..78ad240e 100644 --- a/AsbCloudInfrastructure/Repository/CacheBase.cs +++ b/AsbCloudInfrastructure/Repository/CacheBase.cs @@ -40,6 +40,7 @@ namespace AsbCloudInfrastructure.Repository cacheEntry.SlidingExpiration = CacheOlescence; var entities = this.GetQuery().ToArray(); + cacheEntry.Value = entities; return entities; }); return cache; @@ -53,6 +54,7 @@ namespace AsbCloudInfrastructure.Repository cacheEntry.SlidingExpiration = CacheOlescence; var entities = await this.GetQuery().ToArrayAsync(token); + cacheEntry.Value = entities; return entities.AsEnumerable(); }); return cache;