简体   繁体   中英

Entity Framework 6.4 supports Second level (L2) result caching?

I would like to know whether EF 6.4 supports second revel caching (result caching - not query caching) without extending with a third-party library like EntityFramework.Cache or NCache.

As you can see here , even on the official entity framework site, there is mention of only third party libraries.

The most recent microsoft documentation (I could find) on the subject is back on 2011

The EF doesn't have built-in support for working with second-level caches. That functionality would make the most sense as part of the ObjectContext and DbContext logic when they're about to interact with the database. But implementing the caching while taking into account the various issues discussed in the ACM article is non-trivial, especially with the lack of obvious extensibility points in the EF. One of the features that's frequently highlighted as a big difference between the EF and NHibernate is the fact that NHibernate has built-in support for implementing second-level caching.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM