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;