Fix CacheBase<TEntity>. Set cacheEntry.Value.

This commit is contained in:
ngfrolov 2023-10-16 16:24:27 +05:00
parent 45c32b7f21
commit 50fd1d77e2
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -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;