Diffrence between managers

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 anni tempo fa
Hi all!

Could anyone tell me what is diffrence between MemoryCacheManager and PerRequestCacheManager?
8 anni tempo fa
MemoryCacheManager caches data between requests (for a long-time). PerRequestCacheManager caches data just during one HTTP request (short time)
8 anni tempo fa
Thank you for short description.

Another question which bothers me is why categoryService/ManufacturerService use cache per request?
8 anni tempo fa
It's because Entity Framework doesn't support two-level caching (between requests). So this is limitation of EF
7 anni tempo fa
a.m. wrote:
It's because Entity Framework doesn't support two-level caching (between requests). So this is limitation of EF

Hi Andrei,I have the same question which bothers me,why  Entity Framework doesn't support two-level caching (between requests)?When I implant RedisCacheManager in CategoryService ,it work and had not issue。If use PerRequestCacheManager in Service,the cache set in service will disappear with the request end,we must create cache for the other request,So it can't improve the performance.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.