【问题标题】:How to configurate Ehcache for peer-to-peer replication如何为对等复制配置 Ehcache
【发布时间】:2017-06-27 10:33:09
【问题描述】:

我读过几次,ehcache 可以在复制模式下使用。所以我可以建立一个没有 terracotta-server 的集群(比如对等网络)。但我只能在旧的 ehcache 文档(版本 2.x)中找到有关复制的信息。在新文档中,缺少“复制缓存”这一点,并且 ehcache-config 与新的 ehcache 版本不兼容。 v3.x 中的这个功能消失了吗?如果没有:如何配置ehcache?

问候

【问题讨论】:

    标签: java caching ehcache p2p distributed-caching


    【解决方案1】:

    这个功能确实没有移植到 Ehcache 3.x 中。

    它完全缺乏一致性,因为它只能在每个节点的基础上提供最后一次写入胜利,这很少是可接受的保证。

    如果您需要跨多个节点共享单个缓存,推荐使用 Terracotta 集群。

    【讨论】:

    • 谢谢你的回答:)
    猜你喜欢
    • 2017-05-11
    • 2015-09-22
    • 2023-03-11
    • 2012-03-27
    • 2017-12-18
    • 1970-01-01
    • 2015-03-04
    • 2015-04-01
    • 1970-01-01
    相关资源
    最近更新 更多