开发者

Is there way to tell if an entity is already in the NHibernate second level cache

开发者 https://www.devze.com 2023-01-01 06:18 出处:网络
Does any body know how if there is a way to tell开发者_运维问答 if an entity is already in the NHibernate second level cache?

Does any body know how if there is a way to tell开发者_运维问答 if an entity is already in the NHibernate second level cache?

Ideally what I'd like to be able to do is pass the identifer of an entity to NH and find out if it's already in the second level cache.


Caches are supposed to be transparent to the code using them.

If you enable entity and query caching, and cache the query that generates your graph, it will be retrieved from cache without additional work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号