out-of-box cache support?
Does EF support out-of-box cache support? like second-level cache in Nhibernate
Thank you
Does EF support out-of-box cache support? like second-level cache in Nhibernate
Thank you
No, this isn't something EF supports in this release. It is the kind of thing we will evaluate for possible support in a later release.
It would be useful to know, though, what exact scenario do you have where you would like to use this kind of feature?
Thanks,
Danny
The simplest scenario is web-farm.
Both of Two machines can get better performance by cache. ( sync cache )
Moreover as I know, the performance of orm is not very good with cache.....
so, I guess people will like to see this feature in final release if it is possible...![]()
Thank you
We do not have a plug-in cache model, although one could envision building on top of the object services a cache bound to a context factory similar to that in NHibernate. But, what we have today is a metadata cache which is bound to the connection string. For improving the performance of similar queries, we have a query plan cache that is bound to the metadata cache. It isn’t bound to the context and in that, sense can be thought as a second level cache.
As far as the scenario you mention, synchronization caches in n-tier deployments is not on the books for this release.
Thanks,
Naveen