Hibernate L2 Cache 的事务策略

发布于 2024-08-03 23:25:01 字数 162 浏览 2 评论 0原文

如果 Hibernate L2 缓存供应商支持“事务”策略,那么这是否意味着该缓存保证 Hibernate 配置中指定的事务之间具有相同级别的隔离?

例如,如果缓存支持“读写”策略,那么它保证 REPEATABLE_READ 隔离级别(在某些情况下仅保证 READ_COMMITTED 级别)。

If Hibernate L2 cache vendor supports "transactional" strategy, then does it mean that this cache guarantees the same level of isolation between transactions as specified in Hibernate config?

For example, if cache supports "read-write" strategy then it guarantees REPEATABLE_READ isolation level (and in some cases only READ_COMMITTED level).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

春夜浅 2024-08-10 23:25:01

如果我没记错的话,tree-cache 有它自己的隔离级别定义,所以它可能没有使用 Hibernate 配置。

If I'm not mistaken, tree-cache has it's own isolation level definition, so it is probably not using the Hibernate configuration.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文