forked from ddrilling/AsbCloudServer
Merge branch 'dev' into feature/refactoring_process_map
This commit is contained in:
commit
438cf60b6e
@ -40,6 +40,7 @@ namespace AsbCloudInfrastructure.Repository
|
|||||||
cacheEntry.SlidingExpiration = CacheOlescence;
|
cacheEntry.SlidingExpiration = CacheOlescence;
|
||||||
|
|
||||||
var entities = this.GetQuery().ToArray();
|
var entities = this.GetQuery().ToArray();
|
||||||
|
cacheEntry.Value = entities;
|
||||||
return entities;
|
return entities;
|
||||||
});
|
});
|
||||||
return cache;
|
return cache;
|
||||||
@ -53,6 +54,7 @@ namespace AsbCloudInfrastructure.Repository
|
|||||||
cacheEntry.SlidingExpiration = CacheOlescence;
|
cacheEntry.SlidingExpiration = CacheOlescence;
|
||||||
|
|
||||||
var entities = await this.GetQuery().ToArrayAsync(token);
|
var entities = await this.GetQuery().ToArrayAsync(token);
|
||||||
|
cacheEntry.Value = entities;
|
||||||
return entities.AsEnumerable();
|
return entities.AsEnumerable();
|
||||||
});
|
});
|
||||||
return cache;
|
return cache;
|
||||||
|
Loading…
Reference in New Issue
Block a user