开发者

Is there 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜