Fix gets services for mongo and sql samples
This commit is contained in:
		| @@ -43,7 +43,7 @@ namespace Core.Blueprint.DAL.Mongo.Service | ||||
|  | ||||
|             var sample = await this.repository.FindByIdAsync(_id); | ||||
|  | ||||
|             await cacheProvider.SetAsync(cacheKey, sample); | ||||
|             await cacheProvider.SetAsync(cacheKey, sample, TimeSpan.FromMinutes(cacheSettings.DefaultCacheDurationInMinutes)); | ||||
|  | ||||
|             return sample; | ||||
|         } | ||||
| @@ -58,7 +58,7 @@ namespace Core.Blueprint.DAL.Mongo.Service | ||||
|  | ||||
|             var samples = await this.repository.AsQueryable(); | ||||
|  | ||||
|             await cacheProvider.SetAsync(cacheKey, samples); | ||||
|             await cacheProvider.SetAsync(cacheKey, samples, TimeSpan.FromMinutes(cacheSettings.DefaultCacheDurationInMinutes)); | ||||
|  | ||||
|             return samples; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user