[英]Is there a way to look into L2 hibernate cache?
我的任务是在项目中附加Oracle Coherence(它是缓存软件)。 一种使用它的方式是Level2 Hibernate cache。 我想看看休眠何时从L2缓存中获取结果。 我怎样才能做到这一点? 两种方式都将是不错的选择:尽可能的某种侦听器,或直接访问Cache对象。 提前致谢。
Coherence Hibernate L2集成使您可以指定系统属性,以指向将由L2缓存使用的一致性缓存配置。 如果将“常规”一致性缓存配置指向同一文件,则将允许您通过CacheFactory.getCache访问缓存。
-Dtangosol.coherence.cacheconfig = sample-cache-config.xml -Dtangosol.coherence.hibernate.cacheconfig = sample-cache-config.xml
您可以在此处下载示例: http : //coherence.oracle.com/download/attachments/16730/hibernate-sample-src.jar
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.