forked from ddrilling/AsbCloudServer
Fix CacheBase<TEntity>. Set cacheEntry.Value.
This commit is contained in:
parent
45c32b7f21
commit
50fd1d77e2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user